summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2010-07-25 20:30:21 -0400
committerFrans Kaashoek <[email protected]>2010-07-25 20:30:21 -0400
commit30f5bf054856805b69ef2c5a7485c8d2fecc7098 (patch)
tree70218604907a643731a27f5651394d826ea8ac54 /proc.c
parentaf03ab142de8c68ad56a829e39e8faee9db252d3 (diff)
downloadxv6-labs-30f5bf054856805b69ef2c5a7485c8d2fecc7098.tar.gz
xv6-labs-30f5bf054856805b69ef2c5a7485c8d2fecc7098.tar.bz2
xv6-labs-30f5bf054856805b69ef2c5a7485c8d2fecc7098.zip
some cleanup
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 3e28200..c1faec6 100644
--- a/proc.c
+++ b/proc.c
@@ -242,7 +242,7 @@ sched(void)
panic("sched running");
if(readeflags()&FL_IF)
panic("sched interruptible");
- loadkvm(); // Switch to the kernel page table
+ lcr3(PADDR(kpgdir)); // Switch to the kernel page table
intena = cpu->intena;
swtch(&proc->context, cpu->scheduler);
cpu->intena = intena;