diff --git a/proc.c b/proc.c index 2a878fadc8c5c74a7bb268fc497c5c223ff282a2..96c19f501e052a1cfe977386c84e3642bd3d4411 100644 --- a/proc.c +++ b/proc.c @@ -94,7 +94,7 @@ usegment(void) popcli(); } -//PAGEBREAK: 15 +//PAGEBREAK: 32 // Look in the process table for an UNUSED proc. // If found, change state to EMBRYO and return it. // Otherwise return 0. @@ -139,6 +139,7 @@ found: return p; } +//PAGEBREAK: 32 // Set up first user process. void userinit(void) diff --git a/trap.c b/trap.c index 446ebaab7f06f5743b88a33fa998be2c1e8a3fd9..86ce05259e8dafa025fd6134ec8269e69236b708 100644 --- a/trap.c +++ b/trap.c @@ -73,7 +73,8 @@ trap(struct trapframe *tf) cpu->id, tf->cs, tf->eip); lapiceoi(); break; - + + //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ // In kernel, it must be our mistake.