summaryrefslogtreecommitdiff
path: root/mmu.h
diff options
context:
space:
mode:
Eliminate code for gs trick to track per-cpu state. We rely on lapiccpunum()
to find a per-cpu id with which we locate a cpu's cpu struct.
Diffstat (limited to 'mmu.h')
-rw-r--r--mmu.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/mmu.h b/mmu.h
index e732ccd..a1afa9f 100644
--- a/mmu.h
+++ b/mmu.h
@@ -42,13 +42,12 @@
// various segment selectors.
#define SEG_KCODE 1 // kernel code
#define SEG_KDATA 2 // kernel data+stack
-#define SEG_KCPU 3 // kernel per-cpu data
-#define SEG_UCODE 4 // user code
-#define SEG_UDATA 5 // user data+stack
-#define SEG_TSS 6 // this process's task state
+#define SEG_UCODE 3 // user code
+#define SEG_UDATA 4 // user data+stack
+#define SEG_TSS 5 // this process's task state
// cpu->gdt[NSEGS] holds the above segments.
-#define NSEGS 7
+#define NSEGS 6
//PAGEBREAK!
#ifndef __ASSEMBLER__