Skip to content

Commit

Permalink
m68k/sun3: Fix instruction faults
Browse files Browse the repository at this point in the history
We need to bring in the page where the instruction fault happened.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Thomas Bogendoerfer authored and Geert Uytterhoeven committed Nov 14, 2012
1 parent 7f88d2c commit 5fec45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static inline void bus_error030 (struct frame *fp)
addr -= 2;

if (buserr_type & SUN3_BUSERR_INVALID) {
if (!mmu_emu_handle_fault (fp->un.fmtb.daddr, 1, 0))
if (!mmu_emu_handle_fault(addr, 1, 0))
do_page_fault (&fp->ptregs, addr, 0);
} else {
#ifdef DEBUG
Expand Down

0 comments on commit 5fec45a

Please sign in to comment.