add DPL_USER constant

This commit is contained in:
rsc 2007-08-08 09:02:42 +00:00
parent f83f7ce2f6
commit b6dc6187f7
4 changed files with 8 additions and 6 deletions

2
mmu.h
View file

@ -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)