From 7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 3 Oct 2018 20:14:36 -0400 Subject: Names of text are better. --- proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc.c') 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 -- cgit v1.2.3