diff options
author | Robert Morris <[email protected]> | 2022-08-09 14:17:46 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2022-08-09 14:17:46 -0400 |
commit | 27a669ef25c11e452bf2bbe01341adb36176ab73 (patch) | |
tree | 0f478e5048d0600b5d0dec8c1eebcd5632e3a9a7 /kernel/entry.S | |
parent | af9abaca0543e392812fcde1138e68892b6c70bc (diff) | |
download | xv6-labs-27a669ef25c11e452bf2bbe01341adb36176ab73.tar.gz xv6-labs-27a669ef25c11e452bf2bbe01341adb36176ab73.tar.bz2 xv6-labs-27a669ef25c11e452bf2bbe01341adb36176ab73.zip |
comment nits
Diffstat (limited to 'kernel/entry.S')
-rw-r--r-- | kernel/entry.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/entry.S b/kernel/entry.S index 90fdbac..5ab365e 100644 --- a/kernel/entry.S +++ b/kernel/entry.S @@ -1,21 +1,21 @@ - # qemu -kernel loads the kernel at 0x80000000 - # and causes each CPU to jump there. + # qemu -kernel loads the kernel at 0x80000000 + # and causes each hart (i.e. CPU) to jump there. # kernel.ld causes the following code to # be placed at 0x80000000. .section .text .global _entry _entry: - # set up a stack for C. + # set up a stack for C. # 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 + csrr a1, mhartid addi a1, a1, 1 mul a0, a0, a1 add sp, sp, a0 - # jump to start() in start.c + # jump to start() in start.c call start spin: j spin |