linux-mips
[Top] [All Lists]

[PATCH] Fix r3k exception handler location

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix r3k exception handler location
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Sun, 2 Feb 2003 22:49:52 +0100
Cc: Ralf Baechle <ralf@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4i
Hello All,

this patch is untested, but I just can't see how a r3k can boot without it.


Thiemo


diff -BurpN linux-orig/arch/mips/kernel/traps.c 
linux-2.4.20/arch/mips/kernel/traps.c
--- linux-orig/arch/mips/kernel/traps.c Fri Dec 20 04:19:49 2002
+++ linux-2.4.20/arch/mips/kernel/traps.c       Sun Feb  2 21:57:19 2003
@@ -1000,7 +1000,7 @@ void __init trap_init(void)
        else if (mips_cpu.options & MIPS_CPU_4KEX)
                memcpy((void *)(KSEG0 + 0x180), &except_vec3_generic, 0x80);
        else
-               memcpy((void *)(KSEG0 + 0x080), &except_vec3_generic, 0x80);
+               memcpy((void *)(KSEG0 + 0x180), &except_vec3_generic, 0x80);
 
        if (mips_cpu.cputype == CPU_R6000 || mips_cpu.cputype == CPU_R6000A) {
                /*
diff -BurpN linux-orig/arch/mips64/kernel/traps.c 
linux-2.4.20/arch/mips64/kernel/traps.c
--- linux-orig/arch/mips64/kernel/traps.c       Fri Dec 20 04:19:51 2002
+++ linux-2.4.20/arch/mips64/kernel/traps.c     Sun Feb  2 21:57:20 2003
@@ -755,7 +755,7 @@ void __init trap_init(void)
        } else if (mips_cpu.options & MIPS_CPU_4KEX)
                memcpy((void *)(KSEG0 + 0x180), &except_vec3_generic, 0x80);
        else
-               memcpy((void *)(KSEG0 + 0x080), &except_vec3_generic, 0x80);
+               memcpy((void *)(KSEG0 + 0x180), &except_vec3_generic, 0x80);
 
        if (mips_cpu.cputype == CPU_R6000 || mips_cpu.cputype == CPU_R6000A) {
                /*

<Prev in Thread] Current Thread [Next in Thread>