Download pRISM+ User`s Guide

Transcript
pug.book Page 70 Thursday, May 6, 1999 10:46 AM
pRISM+ Shell Commands
sc
pRISM+ User’s Guide
make a pSOS+ system call (shortcut)
sc system_call
Description
The sc command executes a pSOS+ system call. This is a shortcut for the psos
call command.
Usage
sc system_call
Executes a pSOS+ system call. Depending on the system call, you might also
need to specify one or more system-call parameters. Refer to Table D-3 on page
D-56 and Table D-4 on page D-57 for a complete list of the supported pSOS+
system calls and their requisite parameters.
Examples
■
To suspend the task whose task ID is 0x160000:
sc t_suspend 0x160000
■
To send an asynchronous signal of bit-encoded value 0x12 to task 0x000B0000:
sc as_send 0x000B0000 0x12
■
To send an urgent message to a variable-length queue (with ID 0x00250000)
where 0x803ea864 is the message buffer start address and 2 is the message
length:
sc q_vurgent 0x00250000 0x803ea864 2
■
To acquire a semaphore token where 0x000A0000 is the semaphore ID:
sc sm_p 0x000A0000
See Also
psos on page D-55
D-70