summaryrefslogtreecommitdiff
path: root/mmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'mmu.h')
-rw-r--r--mmu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mmu.h b/mmu.h
index f0eb94d..112f480 100644
--- a/mmu.h
+++ b/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)