mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
riscv: Reduce reset trampoline code size by 2 bytes
`addi` with 20 bit immediate does not have a compressed representation, so using `jalr` with immediate offset uncompressed is smaller than using `addi`+`c.jr`
This commit is contained in:
parent
88d840f796
commit
b3d04d8270
@ -19,8 +19,7 @@ _start:
|
|||||||
.option norelax
|
.option norelax
|
||||||
csrc CSR_MSTATUS, MSTATUS_MIE
|
csrc CSR_MSTATUS, MSTATUS_MIE
|
||||||
lui a0, %hi(_start_real)
|
lui a0, %hi(_start_real)
|
||||||
addi a0, a0, %lo(_start_real)
|
jalr x0, a0, %lo(_start_real)
|
||||||
jr a0
|
|
||||||
|
|
||||||
_start_real:
|
_start_real:
|
||||||
la gp, __global_pointer$
|
la gp, __global_pointer$
|
||||||
|
Loading…
Reference in New Issue
Block a user