1
0
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:
Koen Zandberg 2021-09-22 12:41:12 +02:00 committed by GitHub
commit 6cdd54e425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: