Checkpoint page-table version for SMP
Includes code for TLB shootdown (which actually seems unnecessary for xv6)
This commit is contained in:
parent
74c82bc158
commit
4714c20521
8 changed files with 65 additions and 20 deletions
1
proc.c
1
proc.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue