
73
APPENDIX 3 SYSTEM CALL LIST
System Call
Function
Entry No.
sta_tsk
Starts task by placing it in RUN state from DORMANT state
0
ext_tsk
Normally terminates task itself by placing it in DORMANT state from RUN state
1
ter_tsk
Forcibly terminates another task by placing it DORMANT state
2
chg_pri
Changes a task’s priority
3
ichg_pri
Changes a task’s priority [Issues from interrupt handler]
-
rot_rdq
Rotates the ready queue of the specified priority
4
irot_rdq
Rotates the ready queue of the specified priority [Issues from interrupt handler]
-
tsk_sts
Checks the task status
5
slp_tsk
Places the task in the WAIT state
6
wai_tsk
Places the task in the WAIT state temporarily
7
wup_tsk
Wakes up and places the task in the READY state from the WAIT state
8
iwup_tsk
Wakes up and places the task in the READY state from the WAIT state
[Issues from interrupt handler]
-
can_wup
Cancels a task wake-up request
9
set_flg
Sets an event flag
10
iset_flg
Sets an event flag [Issues from interrupt handler]
-
clr_flg
Clears an event flag
11
wai_flg
Waits for an event flag to be set (w/o clear)
12
cwai_flg
Waits for an event flag to be set (w/clear)
13
pol_flg
Gets an event flag (w/o clear)
14
cpol_flg
Gets an event flag (w/clear)
15
sig_sem
Signal manipulation of a semaphore (V instruction)
16
isig_sem
Signal manipulation of a semaphore (V instruction) [Issues from interrupt handler]
-
wai_sem
Wait manipulation of a semaphore (P instruction)
17
preq_sem
Obtains semaphore resources
18
snd_msg
Sends a message
19
isnd_msg
Sends a message [Issues from interrupt handler]
-
rcv_msg
Waits for reception from a mail box
20
prcv_msg
Receives a message
21
pget_blk
Gets a fixed-length memory block
22
rel_blk
Releases a fixed-length memory block
23
ret_int
Returns from an interrupt handler
-
ret_wup
Returns from an interrupt handler and wakes up a task
-
get_ver
Gets the RX78K/IV version number
25
act_cyc
Controls activation of a cyclic handler.
26
iact_cyc
Controls activation of a cyclic handler. [Issues from interrupt handler]
-