Names of text are better.
This commit is contained in:
parent
eb72653bd7
commit
7ccc5f5f4f
4 changed files with 34 additions and 34 deletions
4
proc.c
4
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue