Skip to content

Commit

Permalink
[MIPS] Fix vectored interrupt support in TLB exception handler genera…
Browse files Browse the repository at this point in the history
…tor.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Apr 19, 2006
1 parent 15c4f67 commit 91b05e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/mm/tlbex.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ static void __init build_r3000_tlb_refill_handler(void)
}
#endif

memcpy((void *)CAC_BASE, tlb_handler, 0x80);
memcpy((void *)ebase, tlb_handler, 0x80);
}

/*
Expand Down Expand Up @@ -1247,7 +1247,7 @@ static void __init build_r4000_tlb_refill_handler(void)
}
#endif

memcpy((void *)CAC_BASE, final_handler, 0x100);
memcpy((void *)ebase, final_handler, 0x100);
}

/*
Expand Down
1 change: 1 addition & 0 deletions include/asm-mips/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_vi_handler (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 NORET_TYPE void die(const char *, struct pt_regs *);
Expand Down

0 comments on commit 91b05e6

Please sign in to comment.