Checkpoint page-table version for SMP

Includes code for TLB shootdown (which actually seems unnecessary for xv6)
This commit is contained in:
Frans Kaashoek 2010-07-23 07:41:13 -04:00
parent 74c82bc158
commit 4714c20521
8 changed files with 65 additions and 20 deletions

1
proc.c
View file

@ -242,6 +242,7 @@ sched(void)
panic("sched running");
if(readeflags()&FL_IF)
panic("sched interruptible");
loadkvm(); // Switch to the kernel page table
intena = cpu->intena;
swtch(&proc->context, cpu->scheduler);
cpu->intena = intena;