parent
ebd1127f1a
commit
d588a922ab
@ -1,14 +1,13 @@
|
|||||||
|
#include "regdef.h"
|
||||||
|
|
||||||
|
.set noreorder
|
||||||
.section .text.entry
|
.section .text.entry
|
||||||
.globl _start
|
.globl _start
|
||||||
_start:
|
_start:
|
||||||
add t0, a0, 1
|
la sp, bootstacktop
|
||||||
slli t0, t0, 16
|
|
||||||
|
|
||||||
lui sp, %hi(bootstack)
|
|
||||||
addi sp, sp, %lo(bootstack)
|
|
||||||
add sp, sp, t0
|
|
||||||
|
|
||||||
call rust_main
|
b rust_main
|
||||||
|
nop
|
||||||
|
|
||||||
.section .bss.stack
|
.section .bss.stack
|
||||||
.align 12 #PGSHIFT
|
.align 12 #PGSHIFT
|
Loading…
Reference in new issue