mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-18 21:52:55 +08:00
riscv: use unsigned comparison for address check
The comparison of a register to see if it holds a number less than 3 needs to be unsigned since the register is otherwise expected to hold an address that could have the most significant bit set. Fixes #5561
This commit is contained in:
committed by
Kinsey Moore
parent
fd53b09378
commit
962dfc8676
@@ -108,7 +108,7 @@ SYM(_start):
|
||||
* level passed to sbi_hsm_hart_start.
|
||||
*/
|
||||
li t0, 3
|
||||
ble s1, t0, .Lafter_fdt_copy
|
||||
bleu s1, t0, .Lafter_fdt_copy
|
||||
mv a0, s1
|
||||
call bsp_fdt_copy
|
||||
.Lafter_fdt_copy:
|
||||
|
||||
Reference in New Issue
Block a user