Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Fix r3k exception handler location
@ 2003-02-02 21:49 Thiemo Seufer
  2003-02-02 22:08 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Thiemo Seufer @ 2003-02-02 21:49 UTC (permalink / raw)
  To: linux-mips; +Cc: Ralf Baechle

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) {
 		/*

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix r3k exception handler location
  2003-02-02 21:49 [PATCH] Fix r3k exception handler location Thiemo Seufer
@ 2003-02-02 22:08 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2003-02-02 22:08 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: linux-mips

On Sun, Feb 02, 2003 at 10:49:52PM +0100, Thiemo Seufer wrote:

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

Because it's not a R4000 ;-)

R3000 has different exception vector locations than R4000.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-02 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-02 21:49 [PATCH] Fix r3k exception handler location Thiemo Seufer
2003-02-02 22:08 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox