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 /main.c | |
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 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -138,8 +138,8 @@ process0() // process to return to. p0->tf = &tf; memset(p0->tf, 0, sizeof(struct trapframe)); - p0->tf->es = p0->tf->ds = p0->tf->ss = (SEG_UDATA << 3) | 3; - p0->tf->cs = (SEG_UCODE << 3) | 3; + p0->tf->es = p0->tf->ds = p0->tf->ss = (SEG_UDATA << 3) | DPL_USER; + p0->tf->cs = (SEG_UCODE << 3) | DPL_USER; p0->tf->eflags = FL_IF; p0->tf->esp = p0->sz; |