You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
433 B
NASM
16 lines
433 B
NASM
.section .text.entry
|
|
.globl _start // 声明_start是全局符号
|
|
_start:
|
|
la sp, boot_stack_top_bound
|
|
call rust_main
|
|
|
|
|
|
|
|
// 声明栈空间 后续 .bss.stack 会被link脚本链接到 .bss段
|
|
.section .bss.stack
|
|
.globl boot_stack_lower_bound // 栈低地址公开为全局符号
|
|
.globl boot_stack_top_bound // 栈高地址公开为全局符号
|
|
boot_stack_lower_bound:
|
|
.space 4096 * 16
|
|
boot_stack_top_bound:
|