270
[( Stack size
β
i used by interrupt handlers )]
The stack size used by an interrupt handler that is invoked during a service call can be calculated by the equation below.
The stack size
β
i used by an interrupt handler is shown below.
C language
Using the stack size calculation utility of NC100, calculate the stack size of each interrupt handler.
Refer to the manual of for the stack size calculation utility detailed use of it.
Assembly language
The stack size to be used by kernel interrupt handler
=
register to be used
+
user size
+
stack size to be used by service call
The stack size to be used by non-kernel interrupt handler
=
register to be used
+
user size
User size is the stack size of the area written by user.
Context(48bytes)
4bytes
32bytes
ret_int
iset_flg
jsr func
Interrupt
84bytes
Figure 10.5: Stack size to be used by Kernel Interrupt Handler(Written in C language)
Содержание 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...