-
公开(公告)号:US20210141661A1
公开(公告)日:2021-05-13
申请号:US16680915
申请日:2019-11-12
Applicant: Silicon Laboratories Inc.
Inventor: Jean-François Deschenes
Abstract: A system and method of minimizing the context saved when the processing unit is disclosed. The kernel attempts to save time and memory by reducing or eliminating the amount of context that is saved or restored in certain situations. Specifically, if there is no currently executing, the kernel does not save any context before switching to another task. Similarly, if there is no new task to execute, the kernel does not restore any context before making the context switch. Rather, the kernel applies a lightweight context. In some embodiments, the idle context uses the ISR stack rather than having a dedicated stack. This system and method reduces the time required for certain context switches and also saves memory.