home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
cpptask.arj
/
TSK.MAC
< prev
next >
Wrap
Text File
|
1991-07-29
|
2KB
|
106 lines
;
; CTask - Definitions for assembler routines
;
; Public Domain Software written by
; Thomas Wagner
; Patschkauer Weg 31
; D-1000 Berlin 33
; West Germany
;
; Define according to tskconf.h
;
;
ST_KILLED = 0
ST_STOPPED = 1
ST_DELAYED = 2
ST_WAITING = 3
ST_ELIGIBLE = 4
ST_RUNNING = 5
;
; Task flags
;
F_TEMP = 80h ; Task is temporary
F_CRIT = 01h ; Task is critical, may not be preempted
;
tlink struc
tnext dd ? ; next pointer
tout dd ? ; timeout counter
reload dd ? ; timeout counter reload
strucp dd ? ; structure pointer
tstate db ? ; timer state
tkind db ? ; timer kind
tlink ends
;
tcb struc
next dd ? ; pointer to next task in queue, undef if current
queue dd ? ; current queue head pointer, next queue if current
tcbstack dd ? ; stack address
stkbot dd ? ; stack bottom
prior dw ? ; task priority
iniprior dw ? ; initial task priority
state db ? ; task state
flags db ? ; task flags
tqptr dd ? ; timerq pointer
;tqnext dd ? ; next pointer
;tqtout dd ? ; timeout counter
;tqrelo dd ? ; timeout counter reload
;tqstru dd ? ; struct pointer
;tqstat db ? ; timer state
;tqkind db ? ; timer kind
retptr dd ? ; return value pointer
retsize dw ? ; return value size
tcb ends
;
flag struc
fwait_set dd ?
fwait_clear dd ?
fstate dw ?
flflags db ?
flag ends
;
counter struc
cwait_set dd ?
cwait_clear dd ?
cstate dd ?
ctflags db ?
counter ends
;
resource struc
rwaiting dd ?
rowner dd ?
rstate dw ?
rsflags db ?
resource ends
;
mailbox struc
mwaiting dd ?
mail_first dd ?
mail_last dd ?
mbflags db ?
mailbox ends
;
pipe struc
pwait_read dd ?
pwait_write dd ?
pwait_clear dd ?
pbufsize dw ?
pfilled dw ?
pinptr dw ?
poutptr dw ?
pcontents dd ?
ppflags db ?
pipe ends
;
wpipe struc
wwait_read dd ?
wwait_write dd ?
wwait_clear dd ?
wbufsize dw ?
wfilled dw ?
winptr dw ?
woutptr dw ?
wcontents dd ?
wpflags db ?
wpipe ends
;