[PATCH 09/17] MIPS: fix addresses of exception vectors in 64-bit mode
Denis Orlov
denorl2009 at gmail.com
Mon Jun 5 13:10:40 PDT 2023
Do not (accidentally?) truncate addresses when setting them in the
handler array.
Signed-off-by: Denis Orlov <denorl2009 at gmail.com>
---
arch/mips/boot/main_entry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c
index 2c18bc81c3..d061a0e987 100644
--- a/arch/mips/boot/main_entry.c
+++ b/arch/mips/boot/main_entry.c
@@ -22,7 +22,7 @@ unsigned long exception_handlers[32];
static void set_except_vector(int n, void *addr)
{
- unsigned handler = (unsigned long) addr;
+ unsigned long handler = (unsigned long) addr;
exception_handlers[n] = handler;
}
--
2.41.0
More information about the barebox
mailing list