clean up %fs %gs use

This commit is contained in:
rsc 2009-05-31 01:12:08 +00:00
parent e97519a6d2
commit 7b644318dd
4 changed files with 5 additions and 8 deletions

2
proc.c
View file

@ -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;
}