diff options
author | Denis Orlov <denorl2009@gmail.com> | 2023-06-05 23:10:40 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-06-09 08:43:23 +0200 |
commit | db91e13a5ebc3878a765d0625e69005e558c3292 (patch) | |
tree | f5a51a21a307e6af37af8bc9c5e2d334ad235760 /arch/mips/boot/main_entry.c | |
parent | 679a592fff1e5a483717a3ad96f6414b57c7e61a (diff) | |
download | barebox-db91e13a5ebc3878a765d0625e69005e558c3292.tar.gz barebox-db91e13a5ebc3878a765d0625e69005e558c3292.tar.xz |
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 <denorl2009@gmail.com>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230605202634.42175-10-denorl2009@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boot/main_entry.c')
-rw-r--r-- | arch/mips/boot/main_entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |