summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@x40.(none)>2009-09-03 00:46:15 -0700
committerRuss Cox <rsc@x40.(none)>2009-09-03 00:46:15 -0700
commitc9ee77b8a20e63663b6ffa35b81f8164fefd319a (patch)
tree505682cc8c186183e33250e07739954d844684f8
parentd26025d12463a902133bdc5b60d377d473294a8d (diff)
downloadxv6-labs-c9ee77b8a20e63663b6ffa35b81f8164fefd319a.tar.gz
xv6-labs-c9ee77b8a20e63663b6ffa35b81f8164fefd319a.tar.bz2
xv6-labs-c9ee77b8a20e63663b6ffa35b81f8164fefd319a.zip
formatting tweaks
-rw-r--r--proc.c3
-rw-r--r--trap.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index 2a878fa..96c19f5 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 446ebaa..86ce052 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.