add DPL_USER constant
This commit is contained in:
parent
f83f7ce2f6
commit
b6dc6187f7
4 changed files with 8 additions and 6 deletions
2
mmu.h
2
mmu.h
|
|
@ -55,6 +55,8 @@ struct segdesc {
|
|||
type, 1, dpl, 1, (uint) (lim) >> 16, 0, 0, 1, 0, \
|
||||
(uint) (base) >> 24 }
|
||||
|
||||
#define DPL_USER 0x3 // User DPL
|
||||
|
||||
// Application segment type bits
|
||||
#define STA_X 0x8 // Executable segment
|
||||
#define STA_E 0x4 // Expand down (non-executable segments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue