From 7b644318dd3b17fe5ec0229db956119986082738 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 31 May 2009 01:12:08 +0000 Subject: clean up %fs %gs use --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index a2aeab2..dd7d881 100644 --- a/proc.c +++ b/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; } -- cgit v1.2.3