[MIPS] Fix kgdb exception handler from user mode.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 9 May 2006 11:23:49 +0000 (20:23 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 31 May 2006 23:28:32 +0000 (00:28 +0100)
Fix a calculation of saved vector address in trap_low.

(damage done by lmo f4c72cc737561aab0d9c7f877abbc0a853f1c465)

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/gdb-low.S

index 10f28fb9f008a92fc89b68c89734233297e8472b..5fd7a8af0c6256bc720c7fa232ee14d551be3e63 100644 (file)
                 */
                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