summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2010-08-05 21:16:55 -0400
committerRobert Morris <[email protected]>2010-08-05 21:16:55 -0400
commit1afc9d3fcaa7c5992659bb8b69f639b746dda2bc (patch)
treee60a41707282ba0ef2c1e00b9cba97bb71339284 /proc.h
parentc99599784e950169d85bf1e4446e7dbfb1a40f59 (diff)
downloadxv6-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 'proc.h')
-rw-r--r--proc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.h b/proc.h
index ebc42f1..5e5d031 100644
--- a/proc.h
+++ b/proc.h
@@ -3,8 +3,8 @@
#define SEG_KCODE 1 // kernel code
#define SEG_KDATA 2 // kernel data+stack
#define SEG_KCPU 3 // kernel per-cpu data
-#define SEG_UCODE 4
-#define SEG_UDATA 5
+#define SEG_UCODE 4 // user code
+#define SEG_UDATA 5 // user data+stack
#define SEG_TSS 6 // this process's task state
#define NSEGS 7