Skip to content
Snippets Groups Projects
Commit 9c65b32d authored by Robert Morris's avatar Robert Morris
Browse files

nothing much

parent c779cc2b
No related branches found
No related tags found
No related merge requests found
# Initial process execs /init.
# This code runs in user space.
#include "syscall.h"
#include "traps.h"
......
......@@ -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.
......
......@@ -171,7 +171,7 @@ switchuvm(struct proc *p)
ltr(SEG_TSS << 3);
if(p->pgdir == 0)
panic("switchuvm: no pgdir");
lcr3(v2p(p->pgdir)); // switch to new address space
lcr3(v2p(p->pgdir)); // switch to process's address space
popcli();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment