* [PATCH] SUN3: Fix intruction faults
@ 2012-11-11 12:28 Thomas Bogendoerfer
2012-11-14 7:46 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2012-11-11 12:28 UTC (permalink / raw)
To: linux-m68k; +Cc: sammy, geert
We need to bring in the page where the instruction fault happened.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
arch/m68k/kernel/traps.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c
index 388e5cc..cbc624a 100644
--- a/arch/m68k/kernel/traps.c
+++ b/arch/m68k/kernel/traps.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] SUN3: Fix intruction faults
2012-11-11 12:28 [PATCH] SUN3: Fix intruction faults Thomas Bogendoerfer
@ 2012-11-14 7:46 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2012-11-14 7:46 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: linux-m68k, sammy
On Sun, Nov 11, 2012 at 1:28 PM, Thomas Bogendoerfer
<tsbogend@alpha.franken.de> wrote:
> We need to bring in the page where the instruction fault happened.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Thanks, will queue for 3.8.
> ---
>
> arch/m68k/kernel/traps.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c
> index 388e5cc..cbc624a 100644
> --- a/arch/m68k/kernel/traps.c
> +++ b/arch/m68k/kernel/traps.c
> @@ -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
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-14 7:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-11 12:28 [PATCH] SUN3: Fix intruction faults Thomas Bogendoerfer
2012-11-14 7:46 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox