From db91e13a5ebc3878a765d0625e69005e558c3292 Mon Sep 17 00:00:00 2001 From: Denis Orlov Date: Mon, 5 Jun 2023 23:10:40 +0300 Subject: MIPS: fix addresses of exception vectors in 64-bit mode Do not (accidentally?) truncate addresses when setting them in the handler array. Signed-off-by: Denis Orlov Reviewed-by: Ahmad Fatoum Link: https://lore.barebox.org/20230605202634.42175-10-denorl2009@gmail.com Signed-off-by: Sascha Hauer --- arch/mips/boot/main_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/mips/boot/main_entry.c') diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c index 73082adb3f..99cd2ec846 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; } -- cgit v1.2.3