4 task control block(tcb) – Renesas Emulator System M3T-MR100 User Manual

Page 43

Advertising
background image

- 27 -

3.4.4

Task Control Block(TCB)

The task control block (TCB) refers to the data block that the real-time OS uses for individual task status, priority, and oth-
er control purposes.

The MR100 manages the following task information as the task control block

Task connection pointer

Task connection pointer used for ready queue formation or other purposes.

Task status

Task priority

Task register information and other data

15

storage stack area pointer(current SP value)

Wake-up counter

Task wake-up request storage area.

Flag wait mode

This is a wait mode during eventflag wait.

Flag wait pattern

This area stores the flag wait pattern when using the eventflag wait service call (wai_flg, twai_flg). No flag wait
pattern area is allocated when the eventflag is not used.

Startup request counter

This is the area in which task startup requests are accumulated.

The task control block is schematized in Figure 3.20

.

TCB

TCB

TCB

Task Connection pointer

Status

Priority

Wake-up counter

Flag wait mode

Flag wait pattern

Activation counter

This area is allocated only when
the timeout function is used.

SP

Figure 3.20 Task control block

15

Called the task context

Advertising