tiny clarifications to some gdt code.
This commit is contained in:
parent
0a4a4230a3
commit
858475e4df
3 changed files with 5 additions and 5 deletions
4
mmu.h
4
mmu.h
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#define CR4_PSE 0x00000010 // Page size extension
|
||||
|
||||
// various segment selectors.
|
||||
#define SEG_KCODE 1 // kernel code
|
||||
#define SEG_KDATA 2 // kernel data+stack
|
||||
#define SEG_KCPU 3 // kernel per-cpu data
|
||||
|
|
@ -46,6 +47,9 @@
|
|||
#define SEG_UDATA 5 // user data+stack
|
||||
#define SEG_TSS 6 // this process's task state
|
||||
|
||||
// cpu->gdt[NSEGS] holds the above segments.
|
||||
#define NSEGS 7
|
||||
|
||||
//PAGEBREAK!
|
||||
#ifndef __ASSEMBLER__
|
||||
// Segment Descriptor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue