All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix kgdb exception handler from user mode
@ 2006-05-09 11:23 Atsushi Nemoto
  2006-05-09 12:32 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2006-05-09 11:23 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

Fix a calculation of saved vector address in trap_low (damage done by
f4c72cc737561aab0d9c7f877abbc0a853f1c465)

diff --git a/arch/mips/kernel/gdb-low.S b/arch/mips/kernel/gdb-low.S
index 10f28fb..5fd7a8a 100644
--- a/arch/mips/kernel/gdb-low.S
+++ b/arch/mips/kernel/gdb-low.S
@@ -54,9 +54,11 @@ #endif
 		 */
 		mfc0	k0, CP0_CAUSE
 		andi	k0, k0, 0x7c
-		add	k1, k1, k0
-		PTR_L	k0, saved_vectors(k1)
-		jr	k0
+#ifdef CONFIG_64BIT
+		dsll	k0, k0, 1
+#endif
+		PTR_L	k1, saved_vectors(k0)
+		jr	k1
 		nop
 1:
 		move	k0, sp

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

end of thread, other threads:[~2006-05-09 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-09 11:23 [PATCH] fix kgdb exception handler from user mode Atsushi Nemoto
2006-05-09 12:32 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.