Download Software for the 6809 Microprocessor board - Indico

Transcript
Software for l.ho 6809 Microprocessor board
Field
-NOTASK
.SUSPEND
-WAIT
-SLEEPING
_IDLE
-READY
Value
0x80
OxCO
0x04
0x06
0x01
0x00
C. Verkerk and A.J. Wetherilt
Description
T C B not used
thread suspended
thread blocked
thread sleeping
T C B claimed but not yet running
thread running or waiting to r u n
Table E.2: Values used to define TCB fields - Thread state values
Field
DETACH-STATE
CANCEL-STATE
CANCEL-TYPE
EXIT_PENDING
CANCEL-PENDING
Value
0x01
0x02
0x04
0x80
0x40
Description
Detach state- bit field
Cancellation state bit field
Cancolation type bit field
Exit pending bit
Cancolation pending bit
Table E.3: Values used to define TCB fields
Field
DETACH.STATE.ON
DETACH-STATE-OFF
CANCEL-STATE-ON
CANCEL-STATE-OFF
CANCEL . T Y P E - A S YNC
CA N CEL-TYPE-DFRD
Thread attribute bit fields
Value
0x0 lfe
OxOOfe
0x02fd
OxOOfd
0x04fb
OxOOfb
Table E.4: User settable thread attribute values
Field
SENDER
NXTMSG
MSG
MSEMA
MSGUSED
Off
set
0
2
4
6
8
Size
2
2
2
2
1
Description
Message sender pid
Link to next message in list
Pointer to message
Message iriutex
Message is in use
Table E.o: Message structure
Workshop on Distributed Laboratory Instrumentation Systems.
Abdus Salam ICTP, Trieste November 26 - December 21. 2001,
112