mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #16876 from jnohlgard/riscv-startup-absolute-fix
riscv: Simplify reset trampoline
This commit is contained in:
commit
6cdd54e425
@ -18,11 +18,8 @@ _start:
|
|||||||
.option push
|
.option push
|
||||||
.option norelax
|
.option norelax
|
||||||
csrc CSR_MSTATUS, MSTATUS_MIE
|
csrc CSR_MSTATUS, MSTATUS_MIE
|
||||||
la a0, _start
|
lui a0, %hi(_start_real)
|
||||||
li a1, ROM_START_ADDR
|
addi a0, a0, %lo(_start_real)
|
||||||
bleu a1, a0, _start_real
|
|
||||||
la a0, _start_real
|
|
||||||
add a0, a0, a1
|
|
||||||
jr a0
|
jr a0
|
||||||
|
|
||||||
_start_real:
|
_start_real:
|
||||||
|
Loading…
Reference in New Issue
Block a user