diff options
author | rsc <rsc> | 2006-09-06 19:08:14 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-09-06 19:08:14 +0000 |
commit | 0cfc7290e8307b66ade6d5eb736c89cc4062c302 (patch) | |
tree | 592ad149f605717dfa0162d75da0af050a9c53e4 /mmu.h | |
parent | db8fb62e4d599f4e08a3b6420e42b2445e8d7fe3 (diff) | |
download | xv6-labs-0cfc7290e8307b66ade6d5eb736c89cc4062c302.tar.gz xv6-labs-0cfc7290e8307b66ade6d5eb736c89cc4062c302.tar.bz2 xv6-labs-0cfc7290e8307b66ade6d5eb736c89cc4062c302.zip |
wrap long lines
Diffstat (limited to 'mmu.h')
-rw-r--r-- | mmu.h | 41 |
1 files changed, 21 insertions, 20 deletions
@@ -1,4 +1,5 @@ -// This file contains definitions for the x86 memory management unit (MMU). +// This file contains definitions for the +// x86 memory management unit (MMU). // Eflags register #define FL_CF 0x00000001 // Carry Flag @@ -41,7 +42,7 @@ struct segdesc { }; // Null segment -#define SEG_NULL (struct segdesc){ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define SEG_NULL (struct segdesc){ 0,0,0,0,0,0,0,0,0,0,0,0,0 } // Normal segment #define SEG(type, base, lim, dpl) (struct segdesc) \ @@ -55,26 +56,26 @@ struct segdesc { (uint) (base) >> 24 } // Application segment type bits -#define STA_X 0x8 // Executable segment -#define STA_E 0x4 // Expand down (non-executable segments) -#define STA_C 0x4 // Conforming code segment (executable only) -#define STA_W 0x2 // Writeable (non-executable segments) -#define STA_R 0x2 // Readable (executable segments) -#define STA_A 0x1 // Accessed +#define STA_X 0x8 // Executable segment +#define STA_E 0x4 // Expand down (non-executable segments) +#define STA_C 0x4 // Conforming code segment (executable only) +#define STA_W 0x2 // Writeable (non-executable segments) +#define STA_R 0x2 // Readable (executable segments) +#define STA_A 0x1 // Accessed // System segment type bits -#define STS_T16A 0x1 // Available 16-bit TSS -#define STS_LDT 0x2 // Local Descriptor Table -#define STS_T16B 0x3 // Busy 16-bit TSS -#define STS_CG16 0x4 // 16-bit Call Gate -#define STS_TG 0x5 // Task Gate / Coum Transmitions -#define STS_IG16 0x6 // 16-bit Interrupt Gate -#define STS_TG16 0x7 // 16-bit Trap Gate -#define STS_T32A 0x9 // Available 32-bit TSS -#define STS_T32B 0xB // Busy 32-bit TSS -#define STS_CG32 0xC // 32-bit Call Gate -#define STS_IG32 0xE // 32-bit Interrupt Gate -#define STS_TG32 0xF // 32-bit Trap Gate +#define STS_T16A 0x1 // Available 16-bit TSS +#define STS_LDT 0x2 // Local Descriptor Table +#define STS_T16B 0x3 // Busy 16-bit TSS +#define STS_CG16 0x4 // 16-bit Call Gate +#define STS_TG 0x5 // Task Gate / Coum Transmitions +#define STS_IG16 0x6 // 16-bit Interrupt Gate +#define STS_TG16 0x7 // 16-bit Trap Gate +#define STS_T32A 0x9 // Available 32-bit TSS +#define STS_T32B 0xB // Busy 32-bit TSS +#define STS_CG32 0xC // 32-bit Call Gate +#define STS_IG32 0xE // 32-bit Interrupt Gate +#define STS_TG32 0xF // 32-bit Trap Gate // Task state segment format struct taskstate { |