summaryrefslogtreecommitdiff
path: root/main.c
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 /main.c
parentf83f7ce2f6ef5b840d8af8ed2573e1934865406f (diff)
downloadxv6-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index dda3e29..ad0c9c2 100644
--- a/main.c
+++ b/main.c
@@ -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;