Renesas M3T-MR100 Network Card User Manual


 
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
j
sr func
Interrupt
84bytes
Figure 10.5: Stack size to be used by Kernel Interrupt Handler(Written in C language)