some cleanup

This commit is contained in:
Frans Kaashoek 2010-07-25 20:30:21 -04:00
parent af03ab142d
commit 30f5bf0548
5 changed files with 45 additions and 32 deletions

2
proc.c
View file

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