From 962dfc8676cb1a3b30286fafa73a3bb00dd58b9c Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Mon, 27 Apr 2026 13:50:00 -0600 Subject: [PATCH] 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 --- bsps/riscv/shared/start/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/riscv/shared/start/start.S b/bsps/riscv/shared/start/start.S index e8b47cbf5f..10bc9900d4 100644 --- a/bsps/riscv/shared/start/start.S +++ b/bsps/riscv/shared/start/start.S @@ -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: