summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-09-08 14:36:44 +0000
committerkaashoek <kaashoek>2006-09-08 14:36:44 +0000
commit8e1d1ec934d5ebcd4d8208f88857be12c8a97a06 (patch)
tree9df339c0bcd494c2e60f63650cac001c62b1ebd2 /main.c
parent50f88503664aae07e22e3ed2575853e396f909b5 (diff)
downloadxv6-labs-8e1d1ec934d5ebcd4d8208f88857be12c8a97a06.tar.gz
xv6-labs-8e1d1ec934d5ebcd4d8208f88857be12c8a97a06.tar.bz2
xv6-labs-8e1d1ec934d5ebcd4d8208f88857be12c8a97a06.zip
some comment changes
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index c18fc08..cd893d5 100644
--- a/main.c
+++ b/main.c
@@ -15,7 +15,7 @@ extern uchar _binary__init_start[], _binary__init_size[];
void process0();
-// CPU 0 starts running C code here.
+// Bootstrap processor starts running C code here.
// This is called main0 not main so that it can have
// a void return type. Gcc can't handle functions named
// main that don't return int. Really.
@@ -28,7 +28,7 @@ main0(void)
// clear BSS
memset(edata, 0, end - edata);
- // switch to cpu0's cpu stack
+ // switch to bootstrap processor's stack
asm volatile("movl %0, %%esp" : : "r" (cpus[0].mpstack + MPSTACK - 32));
asm volatile("movl %0, %%ebp" : : "r" (cpus[0].mpstack + MPSTACK));