diff options
author | rsc <rsc> | 2007-08-08 09:02:42 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-08 09:02:42 +0000 |
commit | b6dc6187f7b0868f0a08e80a20c2a13c32e519ed (patch) | |
tree | e680e25b97933c24e61c80ec9552860b0f359283 /mmu.h | |
parent | f83f7ce2f6ef5b840d8af8ed2573e1934865406f (diff) | |
download | xv6-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |