summaryrefslogtreecommitdiff
path: root/kernel/entry.S
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-07-23 11:14:10 -0400
committerRobert Morris <[email protected]>2019-07-23 11:14:10 -0400
commit55bc96d4190e40704fb5e447cef9597b08b8f088 (patch)
treec418a737973e8f4371fb9c9d488ecb988db87d36 /kernel/entry.S
parentb8a31c494cb535d9eb3e4c1971c4c9020c27c239 (diff)
downloadxv6-labs-55bc96d4190e40704fb5e447cef9597b08b8f088.tar.gz
xv6-labs-55bc96d4190e40704fb5e447cef9597b08b8f088.tar.bz2
xv6-labs-55bc96d4190e40704fb5e447cef9597b08b8f088.zip
a few core -> CPU
get rid of PDF generating support
Diffstat (limited to 'kernel/entry.S')
-rw-r--r--kernel/entry.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/entry.S b/kernel/entry.S
index b3d2c55..97eaf11 100644
--- a/kernel/entry.S
+++ b/kernel/entry.S
@@ -2,7 +2,7 @@
# there seem to be provided by qemu, as if it
# were a ROM. the code at 0x1000 jumps to
# 0x8000000, the _start function here,
- # in machine mode.
+ # in machine mode. each CPU starts here.
.section .data
.globl stack0
.section .text
@@ -11,8 +11,9 @@
.globl _entry
_entry:
# set up a stack for C.
- # stack0 is declared in start,
- # with 4096 bytes per CPU.
+ # stack0 is declared in start.c,
+ # with a 4096-byte stack per CPU.
+ # sp = stack0 + (hartid * 4096)
la sp, stack0
li a0, 1024*4
csrr a1, mhartid