diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-03-29 12:53:00 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-04-18 22:14:13 -0400 |
commit | 91b05e6776e173da5ce7c96d67b3ad186c4fa49f (patch) | |
tree | 4edd08f258844a33daa40bf7af8972aa657fd2fd | |
parent | 15c4f67ab81b07d3b579a11fc4a30da84c0d4858 (diff) |
[MIPS] Fix vectored interrupt support in TLB exception handler generator.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/mm/tlbex.c | 4 | ||||
-rw-r--r-- | include/asm-mips/system.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index 599b3c297186..c5eea6ae12ca 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -742,7 +742,7 @@ static void __init build_r3000_tlb_refill_handler(void) | |||
742 | } | 742 | } |
743 | #endif | 743 | #endif |
744 | 744 | ||
745 | memcpy((void *)CAC_BASE, tlb_handler, 0x80); | 745 | memcpy((void *)ebase, tlb_handler, 0x80); |
746 | } | 746 | } |
747 | 747 | ||
748 | /* | 748 | /* |
@@ -1247,7 +1247,7 @@ static void __init build_r4000_tlb_refill_handler(void) | |||
1247 | } | 1247 | } |
1248 | #endif | 1248 | #endif |
1249 | 1249 | ||
1250 | memcpy((void *)CAC_BASE, final_handler, 0x100); | 1250 | memcpy((void *)ebase, final_handler, 0x100); |
1251 | } | 1251 | } |
1252 | 1252 | ||
1253 | /* | 1253 | /* |
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 29c55e7ab311..39026690d9e4 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -441,6 +441,7 @@ extern void set_handler (unsigned long offset, void *addr, unsigned long len); | |||
441 | extern void set_uncached_handler (unsigned long offset, void *addr, unsigned long len); | 441 | extern void set_uncached_handler (unsigned long offset, void *addr, unsigned long len); |
442 | extern void *set_vi_handler (int n, void *addr); | 442 | extern void *set_vi_handler (int n, void *addr); |
443 | extern void *set_except_vector(int n, void *addr); | 443 | extern void *set_except_vector(int n, void *addr); |
444 | extern unsigned long ebase; | ||
444 | extern void per_cpu_trap_init(void); | 445 | extern void per_cpu_trap_init(void); |
445 | 446 | ||
446 | extern NORET_TYPE void die(const char *, struct pt_regs *); | 447 | extern NORET_TYPE void die(const char *, struct pt_regs *); |