parent
528c919626
commit
6cf0d6db23
@ -1,14 +1,19 @@
|
||||
.section .text.entry
|
||||
.globl _start
|
||||
_start:
|
||||
lui sp, %hi(bootstacktop)
|
||||
addi sp, sp, %lo(bootstacktop)
|
||||
add t0, a0, 1
|
||||
slli t0, t0, 16
|
||||
|
||||
lui sp, %hi(bootstack)
|
||||
addi sp, sp, %lo(bootstack)
|
||||
add sp, sp, t0
|
||||
|
||||
call rust_main
|
||||
|
||||
.section .bss
|
||||
.align 12 #PGSHIFT
|
||||
.global bootstack
|
||||
bootstack:
|
||||
.space 4096 * 16 #KSTACKSIZE
|
||||
.space 4096 * 16 * 8
|
||||
.global bootstacktop
|
||||
bootstacktop:
|
||||
|
Loading…
Reference in new issue