diff options
author | Frans Kaashoek <[email protected]> | 2018-10-03 20:14:36 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2018-10-03 20:14:36 -0400 |
commit | 7ccc5f5f4f69c8f1f16f2eda534ff9893ff2226b (patch) | |
tree | e232e5fff0e16f33bc99be29926124a37aaabb90 /proc.c | |
parent | eb72653bd7a1dec89a79af3c377c3abf8df2064a (diff) | |
download | xv6-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |