summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2018-10-03 20:14:36 -0400
committerFrans Kaashoek <[email protected]>2018-10-03 20:14:36 -0400
commit7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b (patch)
treee232e5fff0e16f33bc99be29926124a37aaabb90 /proc.c
parenteb72653bd7a1dec89a79af3c377c3abf8df2064a (diff)
downloadxv6-labs-7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b.tar.gz
xv6-labs-7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b.tar.bz2
xv6-labs-7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b.zip
Names of text are better.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index 4d0faec..14c3da8 100644
--- a/proc.c
+++ b/proc.c
@@ -139,8 +139,8 @@ userinit(void)
inituvm(p->pgdir, _binary_initcode_start, (uint64)_binary_initcode_size);
p->sz = PGSIZE;
memset(p->tf, 0, sizeof(*p->tf));
- p->tf->cs = UCSEG | 0x3;
- p->tf->ss = UDSEG | 0x3;
+ p->tf->cs = SEG_UCODE | DPL_USER;
+ p->tf->ss = SEG_UDATA | DPL_USER;
p->tf->r11 = FL_IF;
p->tf->rsp = PGSIZE;
p->tf->rcx = 0; // beginning of initcode.S