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 norelax
|
||||
csrc CSR_MSTATUS, MSTATUS_MIE
|
||||
la a0, _start
|
||||
li a1, ROM_START_ADDR
|
||||
bleu a1, a0, _start_real
|
||||
la a0, _start_real
|
||||
add a0, a0, a1
|
||||
lui a0, %hi(_start_real)
|
||||
addi a0, a0, %lo(_start_real)
|
||||
jr a0
|
||||
|
||||
_start_real:
|
||||
|
Loading…
Reference in New Issue
Block a user