Renesas M3T-MR100 用户手册

下载
页码 304
   
- 17 - 
 
Service Calls from a Handler That Caused an Interrupt during Task Execution 
Scheduling (task switching) is initiated by the ret_int service call
 8
 
 
Scheduler 
Interrupt 
ret_int 
iset_flg 
TaskA 
Interrupt handler 
Save Registers 
Service call processing 
OS 
Restore Registers
SP <= User 
Restore Registers 
Task selection 
TaskB 
 
Figure 3.11 Processing Procedure for a Service Call a Handler that caused an interrupt during Task 
Execution 
                                                      
8
  The ret_int service call is issued automatically when kernel interrupt handler is written in C language (when #pragma INTHANDLER speci-
fied)