268
10.1.2 System Stack Calculation Method
The system stack is most often consumed when an interrupt occurs during service call processing followed by the occur-
rence of multiple interrupts.
The necessary size (the maximum size) of the system stack can be obtained from the fol-
lowing relation:
Necessary size of the system stack =
α
Σ
β
i(
γ
)
z
α
The maximum system stack size among the service calls to be used.
.
When sta_tsk, ext_tsk, and dly_tsk are used for example, according to the Table 10.1 Stack Sizes Used by Ser-
vice Calls Issued from Tasks (in bytes),each of system stack size is the following.
Service Call name
System Stack Size
sta_tsk 4
bytes
ext_tsk 4
bytes
slp_tsk 4
bytes
dly_tsk 8
bytes
Therefore,the maximum system stack size among the service calls to be used is the 8 bytes of dly_tsk.
z
β
i
The stack size to be used by the interrupt handler.
The details will be described later.
z
γ
Stack size used by the system clock interrupt handler. This is detailed later.
55
After switchover from user stack to system stack
56
Refer from Table 10.1 Stack Sizes Used by Service Calls Issued from Tasks (in bytes) to Table 10.3 Stack Sizes Used by Service Calls
Issued from Tasks and Handlers (in bytes) for the system stack size used for each individual service call.
57
Kernel interrupt handler (not including the system clock interrupt handler here) and non-kernel interrupt handler.
Содержание Emulator System M3T-MR100
Страница 3: ...M3T MR100 4 V 1 00 User s Manual User s Manual Rev 1 00 2007 09 Real time OS for R32C 100 Series...
Страница 6: ......
Страница 14: ......
Страница 16: ...xii...
Страница 18: ......
Страница 78: ......
Страница 242: ......
Страница 269: ...253 235 entry_address alm2 236 name ID_alm2 237 exinf 0x12345678 238 239 240 241 242 End of Configuration 243...
Страница 279: ...263...
Страница 290: ......
Страница 294: ......
Страница 304: ...288...
Страница 306: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M3T MR100 4 V 1 00 REJ10J1523 0100 User s Manual...