diff options
author | Robert Morris <[email protected]> | 2010-08-05 21:16:55 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2010-08-05 21:16:55 -0400 |
commit | 1afc9d3fcaa7c5992659bb8b69f639b746dda2bc (patch) | |
tree | e60a41707282ba0ef2c1e00b9cba97bb71339284 /asm.h | |
parent | c99599784e950169d85bf1e4446e7dbfb1a40f59 (diff) | |
download | xv6-labs-1afc9d3fcaa7c5992659bb8b69f639b746dda2bc.tar.gz xv6-labs-1afc9d3fcaa7c5992659bb8b69f639b746dda2bc.tar.bz2 xv6-labs-1afc9d3fcaa7c5992659bb8b69f639b746dda2bc.zip |
add some comments
find out the hard way why user and kernel must have separate segment descriptors
Diffstat (limited to 'asm.h')
-rw-r--r-- | asm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,8 @@ .word 0, 0; \ .byte 0, 0, 0, 0 +// The 0xC0 means the limit is in 4096-byte units +// and (for executable segments) 32-bit mode. #define SEG_ASM(type,base,lim) \ .word (((lim) >> 12) & 0xffff), ((base) & 0xffff); \ .byte (((base) >> 16) & 0xff), (0x90 | (type)), \ |