formatting tweaks
This commit is contained in:
parent
d26025d124
commit
c9ee77b8a2
2 changed files with 4 additions and 2 deletions
3
proc.c
3
proc.c
|
@ -94,7 +94,7 @@ usegment(void)
|
||||||
popcli();
|
popcli();
|
||||||
}
|
}
|
||||||
|
|
||||||
//PAGEBREAK: 15
|
//PAGEBREAK: 32
|
||||||
// Look in the process table for an UNUSED proc.
|
// Look in the process table for an UNUSED proc.
|
||||||
// If found, change state to EMBRYO and return it.
|
// If found, change state to EMBRYO and return it.
|
||||||
// Otherwise return 0.
|
// Otherwise return 0.
|
||||||
|
@ -139,6 +139,7 @@ found:
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//PAGEBREAK: 32
|
||||||
// Set up first user process.
|
// Set up first user process.
|
||||||
void
|
void
|
||||||
userinit(void)
|
userinit(void)
|
||||||
|
|
3
trap.c
3
trap.c
|
@ -73,7 +73,8 @@ trap(struct trapframe *tf)
|
||||||
cpu->id, tf->cs, tf->eip);
|
cpu->id, tf->cs, tf->eip);
|
||||||
lapiceoi();
|
lapiceoi();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
//PAGEBREAK: 13
|
||||||
default:
|
default:
|
||||||
if(proc == 0 || (tf->cs&3) == 0){
|
if(proc == 0 || (tf->cs&3) == 0){
|
||||||
// In kernel, it must be our mistake.
|
// In kernel, it must be our mistake.
|
||||||
|
|
Loading…
Reference in a new issue