Chapter 7 Application Creation Guide
- 137 -
7.1.1 System Calls from a Handler That Caused an Interrupt during Task Execution
Scheduling (task switching) is initiated by the ret_int service call 63(See Figure 7.1).
Scheduler
Interrupt
ret_int
iset_flg
TaskA Interrupt handler
Save Registers
system call processing
OS
Restore Registers
SP <= User
Restore Registers
Task selection
TaskB
Figure 7.1 Processing Procedure for a System Call a Handler that caused an interrupt during Task
Execution
63 The ret_int service call is issued automatically when OS-dependent handler is written in C language (when #pragma I NTHANDLER
specified)