clean up %fs %gs use
This commit is contained in:
parent
e97519a6d2
commit
7b644318dd
4 changed files with 5 additions and 8 deletions
2
proc.c
2
proc.c
|
@ -93,9 +93,9 @@ ksegment(void)
|
|||
c1->gdt[SEG_UDATA] = SEG_NULL;
|
||||
c1->gdt[SEG_TSS] = SEG_NULL;
|
||||
lgdt(c1->gdt, sizeof(c1->gdt));
|
||||
loadfsgs(SEG_KCPU << 3);
|
||||
|
||||
// Initialize cpu-local variables.
|
||||
setgs(SEG_KCPU << 3);
|
||||
c = c1;
|
||||
cp = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue