264
10. Stack Size Calculation Method
10.1 Stack Size Calculation Method
The MR100 provides two kinds of stacks: the system stack and the user stack. The stack size calculation method differ be-
tween the stacks.
z
User stack
This stack is provided for each task. Therefore, writing an application by using the MR100 requires to allocate
the stack area for each stack.
z
System stack
This stack is used inside the MR100 or during the execution of the handler.
When a task issues a service call, the MR100 switches the user stack to the system stack. (See
10.1:System Stack and User Stack
)
The system stack uses interrupt stack(ISP).
Register save
Stack switching
Service call
rocessing
Task Selection
Stack switching
Register return
XXX_XXX()
MR100 Service Call Processing Position
User Stack
User Stack
System Stack
(interruput stack)
Task
Figure 10.1:System Stack and User Stack
The sections of the system stack and user stack each are located in the manner shown below. However, the diagram shown
below applies to the case where the stack areas for all tasks are located in the stack section during configuration.
Содержание 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...