Last change
on this file since 9 was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
711 bytes
|
Line | |
---|
1 | ! Miscellaneous constants used in assembler code.
|
---|
2 | W = _WORD_SIZE ! Machine word size.
|
---|
3 |
|
---|
4 | ! Offsets in struct proc. They MUST match proc.h.
|
---|
5 | P_STACKBASE = 0
|
---|
6 | GSREG = P_STACKBASE
|
---|
7 | FSREG = GSREG + 2 ! 386 introduces FS and GS segments
|
---|
8 | ESREG = FSREG + 2
|
---|
9 | DSREG = ESREG + 2
|
---|
10 | DIREG = DSREG + 2
|
---|
11 | SIREG = DIREG + W
|
---|
12 | BPREG = SIREG + W
|
---|
13 | STREG = BPREG + W ! hole for another SP
|
---|
14 | BXREG = STREG + W
|
---|
15 | DXREG = BXREG + W
|
---|
16 | CXREG = DXREG + W
|
---|
17 | AXREG = CXREG + W
|
---|
18 | RETADR = AXREG + W ! return address for save() call
|
---|
19 | PCREG = RETADR + W
|
---|
20 | CSREG = PCREG + W
|
---|
21 | PSWREG = CSREG + W
|
---|
22 | SPREG = PSWREG + W
|
---|
23 | SSREG = SPREG + W
|
---|
24 | P_STACKTOP = SSREG + W
|
---|
25 | P_LDT_SEL = P_STACKTOP
|
---|
26 | P_LDT = P_LDT_SEL + W
|
---|
27 |
|
---|
28 | Msize = 9 ! size of a message in 32-bit words
|
---|
Note:
See
TracBrowser
for help on using the repository browser.