source: branches/minix3-book/kernel/sconst.h@ 11

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