beautypg.com

1 service call processing – Renesas Emulator System M3T-MR100 User Manual

Page 31

background image

- 15 -

3.2.1

Service Call Processing

When a service call is issued, processing takes place in the following sequence.

6

1. The current register contents are saved.

2. The stack pointer is changed from the task type to the real-time OS (system) type.

3. Processing is performed in compliance with the request made by the service call.

4. The task to be executed next is selected.

5. The stack pointer is changed to the task type.

6. The register contents are recovered to resume task execution.

The flowchart in Figure 3.10 shows the process between service call generation and task switching.

Key input Task

Service call issuance

Register Save

SP <= OS

Processing

Task Selection

Task => SP

Register Restore

LED illumination Task

Figure 3.10 Service Call Processing Flowchart

6

A different sequence is followed if the issued service call does not evoke task switching.