Commit 91b05e67 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Fix vectored interrupt support in TLB exception handler generator.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 15c4f67a
...@@ -742,7 +742,7 @@ static void __init build_r3000_tlb_refill_handler(void) ...@@ -742,7 +742,7 @@ static void __init build_r3000_tlb_refill_handler(void)
} }
#endif #endif
memcpy((void *)CAC_BASE, tlb_handler, 0x80); memcpy((void *)ebase, tlb_handler, 0x80);
} }
/* /*
...@@ -1247,7 +1247,7 @@ static void __init build_r4000_tlb_refill_handler(void) ...@@ -1247,7 +1247,7 @@ static void __init build_r4000_tlb_refill_handler(void)
} }
#endif #endif
memcpy((void *)CAC_BASE, final_handler, 0x100); memcpy((void *)ebase, final_handler, 0x100);
} }
/* /*
......
...@@ -441,6 +441,7 @@ extern void set_handler (unsigned long offset, void *addr, unsigned long len); ...@@ -441,6 +441,7 @@ extern void set_handler (unsigned long offset, void *addr, unsigned long len);
extern void set_uncached_handler (unsigned long offset, void *addr, unsigned long len); extern void set_uncached_handler (unsigned long offset, void *addr, unsigned long len);
extern void *set_vi_handler (int n, void *addr); extern void *set_vi_handler (int n, void *addr);
extern void *set_except_vector(int n, void *addr); extern void *set_except_vector(int n, void *addr);
extern unsigned long ebase;
extern void per_cpu_trap_init(void); extern void per_cpu_trap_init(void);
extern NORET_TYPE void die(const char *, struct pt_regs *); extern NORET_TYPE void die(const char *, struct pt_regs *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment