summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-08 15:14:43 +0000
committerrsc <rsc>2006-09-08 15:14:43 +0000
commit4fb684548aef31639fec850a6011259716f4291e (patch)
tree9a4d2ace0a48142c4b6f9c966107c0ada5b7ef04 /main.c
parentefb01c1dc05ad96268a84c866f0c9d467e76ba42 (diff)
downloadxv6-labs-4fb684548aef31639fec850a6011259716f4291e.tar.gz
xv6-labs-4fb684548aef31639fec850a6011259716f4291e.tar.bz2
xv6-labs-4fb684548aef31639fec850a6011259716f4291e.zip
formatting nits
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.c b/main.c
index cfab55f..add0f92 100644
--- a/main.c
+++ b/main.c
@@ -74,8 +74,10 @@ main0(void)
mp_startthem();
// turn on timer
- if (ismp) lapic_timerinit();
- else pit8253_timerinit();
+ if(ismp)
+ lapic_timerinit();
+ else
+ pit8253_timerinit();
// enable interrupts on the local APIC
lapic_enableintr();
@@ -126,7 +128,8 @@ process0()
p0->cwd = iget(rootdev, 1);
iunlock(p0->cwd);
- // dummy user memory to make copyproc() happy
+ // dummy user memory to make copyproc() happy.
+ // must be big enough to hold the init binary.
p0->sz = PAGE;
p0->mem = kalloc(p0->sz);