summaryrefslogtreecommitdiff
path: root/mmu.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-08 09:02:42 +0000
committerrsc <rsc>2007-08-08 09:02:42 +0000
commitb6dc6187f7b0868f0a08e80a20c2a13c32e519ed (patch)
treee680e25b97933c24e61c80ec9552860b0f359283 /mmu.h
parentf83f7ce2f6ef5b840d8af8ed2573e1934865406f (diff)
downloadxv6-labs-b6dc6187f7b0868f0a08e80a20c2a13c32e519ed.tar.gz
xv6-labs-b6dc6187f7b0868f0a08e80a20c2a13c32e519ed.tar.bz2
xv6-labs-b6dc6187f7b0868f0a08e80a20c2a13c32e519ed.zip
add DPL_USER constant
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)