Mercurial > hg > Members > kono > nitros9-code
annotate defs/proc.d @ 1919:028161cd3535
uses ss.fd
author | boisy |
---|---|
date | Fri, 25 Nov 2005 12:39:54 +0000 |
parents | 27e85b681dab |
children |
rev | line source |
---|---|
1626 | 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
2 ; proc - Process Descriptor Constants |
1626 | 3 ; |
4 ; $Id$ | |
5 ; | |
6 ; Edt/Rev YYYY/MM/DD Modified by | |
7 ; Comment | |
8 ; ------------------------------------------------------------------ | |
9 ; 2004/05/17 Boisy G. Pitre | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
10 ; Created. |
1626 | 11 |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
12 .title Process Descriptor Constants |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1628
diff
changeset
|
13 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1628
diff
changeset
|
14 .area PROC (ABS) |
1626 | 15 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1628
diff
changeset
|
16 .ifndef Level |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1628
diff
changeset
|
17 Level == 1 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1628
diff
changeset
|
18 .endif |
1626 | 19 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1628
diff
changeset
|
20 .iflt Level-2 |
1626 | 21 |
22 ; Level 1 process descriptor defs | |
23 DefIOSiz == 12 | |
24 NumPaths == 16 ; Number of Local Paths | |
25 | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
26 P$ID == 0h00 ; Process ID |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
27 P$PID == 0h01 ; Parent's ID |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
28 P$SID == 0h02 ; Sibling's ID |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
29 P$CID == 0h03 ; Child's ID |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
30 P$SP == 0h04 ; Stack ptr |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
31 P$CHAP == 0h06 ; process chapter number |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
32 P$ADDR == 0h07 ; user address beginning page number |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
33 P$PagCnt == 0h08 ; Memory Page Count |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
34 P$User == 0h09 ; User Index |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
35 P$Prior == 0h0B ; Priority |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
36 P$Age == 0h0C ; Age |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
37 P$State == 0h0D ; Process State |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
38 P$Queue == 0h0E ; Queue Link (Process ptr) |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
39 P$IOQP == 0h10 ; Previous I/O Queue Link (Process ID) |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
40 P$IOQN == 0h11 ; Next I/O Queue Link (Process ID) |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
41 P$PModul == 0h12 ; Primary Module |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
42 P$SWI == 0h14 ; SWI Entry Point |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
43 P$SWI2 == 0h16 ; SWI2 Entry Point |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
44 P$SWI3 == 0h18 ; SWI3 Entry Point |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
45 P$DIO == 0h1A ; default I/O ptrs |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
46 P$PATH == P$DIO+DefIOSiz ; I/O path table |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
47 P$Signal == P$PATH+NumPaths ; Signal Code |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
48 P$SigVec == P$Signal+2 ; Signal Intercept Vector |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
49 P$SigDat == P$SigVec+22 ; Signal Intercept Data Address |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
50 P$NIO == 4 ; additional DIO pointers for net |
1627 | 51 ; unused |
52 .org 0h40 | |
1626 | 53 P$Size == . ; Size of Process Descriptor |
54 | |
55 ; | |
56 ; Process State Flags | |
57 ; | |
58 SysState == 0b10000000 | |
59 TimSleep == 0b01000000 | |
60 TimOut == 0b00100000 | |
61 ImgChg == 0b00010000 | |
62 Condem == 0b00000010 | |
63 Dead == 0b00000001 | |
64 | |
65 .else | |
66 | |
67 ; Level 2 process descriptor defs | |
68 DefIOSiz == 16 ; Default I/O Data Length | |
69 NefIOSiz == 12 ; On-Net Default I/O Data Length | |
70 NumPaths == 16 ; Number of Local Paths | |
71 | |
72 .org 0 | |
73 P$ID:: .rmb 1 ; Process ID | |
74 P$PID:: .rmb 1 ; Parent's ID | |
75 P$SID:: .rmb 1 ; Sibling's ID | |
76 P$CID:: .rmb 1 ; Child's ID | |
77 P$SP:: .rmb 2 ; Stack ptr | |
78 P$Task:: .rmb 1 ; Task Number | |
79 P$PagCnt:: .rmb 1 ; Memory Page Count | |
80 P$User:: .rmb 2 ; User Index | |
81 P$Prior:: .rmb 1 ; Priority | |
82 P$Age:: .rmb 1 ; Age | |
83 P$State:: .rmb 1 ; Status | |
84 P$Queue:: .rmb 2 ; Queue Link (Process ptr) | |
85 P$IOQP:: .rmb 1 ; Previous I/O Queue Link (Process ID) | |
86 P$IOQN:: .rmb 1 ; Next I/O Queue Link (Process ID) | |
87 P$PModul:: .rmb 2 ; Primary Module | |
88 P$SWI:: .rmb 2 ; SWI Entry Point | |
89 P$SWI2:: .rmb 2 ; SWI2 Entry Point | |
90 P$SWI3:: .rmb 2 ; SWI3 Entry Point | |
91 P$Signal:: .rmb 1 ; Signal Code | |
92 P$SigVec:: .rmb 2 ; Signal Intercept Vector | |
93 P$SigDat:: .rmb 2 ; Signal Intercept Data Address | |
94 P$DeadLk:: .rmb 1 ; Dominant proc ID if I/O locked | |
1627 | 95 .org 0h20 |
1626 | 96 P$DIO:: .rmb DefIOSiz ; Default I/O ptrs |
97 P$Path:: .rmb NumPaths ; I/O Path Table | |
98 P$DATImg:: .rmb 64 ; DAT Image | |
99 P$Links:: .rmb 32 ; Block Link counts | |
100 P$NIO:: .rmb 6*2 ; additional DIO ptrs for net, compatible with 68k | |
101 P$SelP:: .rmb 1 ; Selected Path for COCO Windows (Default 0) | |
102 P$UTicks:: .rmb 4 ; proc User Tick counter (L2V3) | |
103 P$STicks:: .rmb 4 ; proc System Tick counter (L2V3) | |
104 P$FCalls:: .rmb 4 ; proc F$ call counter (L2V3) | |
105 P$ICalls:: .rmb 4 ; proc I$ call counter (L2V3) | |
106 P$DatBeg:: .rmb 3 ; proc Date of creation (Y/M/D) (L2V3) | |
107 P$TimBeg:: .rmb 3 ; proc Time of creation (H/M/S) (L2V3) | |
108 P$Alarm:: .rmb 6 | |
1627 | 109 ; Local stack |
110 .org 0h200 | |
1626 | 111 P$Stack == . ; Top of Stack |
112 P$Size == . ; Size of Process Descriptor | |
113 | |
114 ; | |
115 ; Process State Flags | |
116 ; | |
117 SysState == 0b10000000 | |
118 TimSleep == 0b01000000 | |
119 TimOut == 0b00100000 | |
120 ImgChg == 0b00010000 | |
121 Suspend == 0b00001000 | |
122 Condem == 0b00000010 | |
123 Dead == 0b00000001 | |
124 | |
125 .endif |