...
Figure 15.4 shows the stack frames as well as the FPU storage areas of the task being suspended and the task being resumed.
F15.4(1) L15.15(1
Note that interrupts are disabled during OSCtxSw
and also during execution of OSTaskSwHook
.
...
The code is shown in Listing 15.16 and is identical to the OSIntCtxSw
presented in Chapter 14. The floating-point registers are handled by OSTaskSwHook
. Figure 15.5 shows the context switch process from OSIntCtxSw
í s point of view.
As in Chapter 14, letís let's assume that the processor receives an interrupt. Letís also supposed that interrupts are enabled. The processor completes the current instruction and initiates an interrupt handling procedure.
...