Download Software for the 6809 Microprocessor board - Indico

Transcript
Software fcr the 6809 Microprocessor board
C. Verksrk and A.J. Wetherilt
Continued from previous page
Description and behaviour
Symbolic name
OSUpScm
4 Perform an up on a given system semaphore
Arguments: A = Semaphore number
B = -1 if all waiting threads are to be
released
Returns :
Nothing
On error ;
A - ERR.BADSEMA
Blocking :
Will not block
OSResetESem
5 Reset an event system semaphore
Arguments; A ~ Semaphore number
Returns :
Nothing
On error :
A = ERR_BADSEMA
Blocking :
Will not block
OSFrccUserSem
39 Release existing user semaphore
Arguments: X = Address of semaphore
Returns :
Nothing
On error :
Nothing
Blocking :
Will not block
OSDownUscrScm
40 Perform a down on a given user semaphore
Arguments: X — Address of semaphore
Returns :
Nothing
On error :
Nothing
Blocking :
Will block
OSUpUscrScm
41 Perform an up on a given user semaphore
Arguments: X = Address of semaphore
Returns :
Nothing
On error :
Nothing
Blocking :
Will not block
OSResetUserESem 42 Reset an event user semaphore
Arguments: X = Address of semaphore
Returns :
Nothing
On error :
NothingBlocking :
Will not block
43 Perform down on semaphore and up on mutex
OSDownHybrid
combination
Arguments: X = Address of resource semaphore
Y = Address of mutex lock
Returns :
Nothing
On error :
Nothing
Blocking :
Will block
Continued on next page
Table C.I: System calls - Continued
Workshop on Distributed Laboratory Instrumentation Systems.
Abdus Salam ICTP, Trieste November 26 - December 21, 2001.
99