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