nothing much
parent
c779cc2be1
commit
9c65b32d9e
|
|
@ -1,4 +1,5 @@
|
|||
# Initial process execs /init.
|
||||
# This code runs in user space.
|
||||
|
||||
#include "syscall.h"
|
||||
#include "traps.h"
|
||||
|
|
|
|||
2
proc.c
2
proc.c
|
|
@ -283,7 +283,7 @@ scheduler(void)
|
|||
proc = p;
|
||||
switchuvm(p);
|
||||
p->state = RUNNING;
|
||||
swtch(&cpu->scheduler, proc->context);
|
||||
swtch(&cpu->scheduler, p->context);
|
||||
switchkvm();
|
||||
|
||||
// Process is done running for now.
|
||||
|
|
|
|||
Loading…
Reference in New Issue