We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e1098 commit 69e660fCopy full SHA for 69e660f
lec2/p4-lab1.md
@@ -621,7 +621,7 @@ https://github.com/riscv-non-isa/riscv-asm-manual/blob/master/riscv-asm.md
621
.section .text.entry
622
.globl _start
623
_start:
624
- la sp, boot_stack_top
+ la sp, boot_stack_top
625
call rust_main
626
627
.section .bss.stack
@@ -631,6 +631,16 @@ boot_stack:
631
.globl boot_stack_top
632
boot_stack_top:
633
```
634
+<!--la sp, boot_stack_top 将栈顶地址 boot_stack_top 加载到栈指针寄存器 sp 中,这个操作初始化了栈。
635
+
636
+.globl boot_stack 栈的起始地址。
637
638
+.space 4096 * 16分配 4096 * 16 字节(即 64 KB)的栈空间。这种分配方式常用于规定栈的最大尺寸。
639
640
+globl boot_stack_top 和 boot_stack_top::
641
642
+声明并定义一个全局标签 boot_stack_top,表示栈的顶部。
643
+-->
644
645
---
646
#### 分配并使用启动栈
0 commit comments