some cleanup
This commit is contained in:
parent
af03ab142d
commit
30f5bf0548
5 changed files with 45 additions and 32 deletions
2
proc.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue