Browse Source

[MIPS] Fix kgdb exception handler from user mode.

Fix a calculation of saved vector address in trap_low.

(damage done by lmo f4c72cc737561aab0d9c7f877abbc0a853f1c465)

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Atsushi Nemoto 19 years ago
parent
commit
867a521b4c
1 changed files with 5 additions and 3 deletions
  1. 5 3
      arch/mips/kernel/gdb-low.S

+ 5 - 3
arch/mips/kernel/gdb-low.S

@@ -54,9 +54,11 @@
 		 */
 		 */
 		mfc0	k0, CP0_CAUSE
 		mfc0	k0, CP0_CAUSE
 		andi	k0, k0, 0x7c
 		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
 		nop
 1:
 1:
 		move	k0, sp
 		move	k0, sp