mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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
|
||||
csrc CSR_MSTATUS, MSTATUS_MIE
|
||||
lui a0, %hi(_start_real)
|
||||
addi a0, a0, %lo(_start_real)
|
||||
jr a0
|
||||
jalr x0, a0, %lo(_start_real)
|
||||
|
||||
_start_real:
|
||||
la gp, __global_pointer$
|
||||
|
Loading…
Reference in New Issue
Block a user