Commit f4c72cc7 authored by Ralf Baechle's avatar Ralf Baechle

Get 64-bit right in the kgdb stub.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 0d507d61
...@@ -52,16 +52,15 @@ ...@@ -52,16 +52,15 @@
/* /*
* Called from user mode, go somewhere else. * Called from user mode, go somewhere else.
*/ */
lui k1, %hi(saved_vectors)
mfc0 k0, CP0_CAUSE mfc0 k0, CP0_CAUSE
andi k0, k0, 0x7c andi k0, k0, 0x7c
add k1, k1, k0 add k1, k1, k0
lw k0, %lo(saved_vectors)(k1) PTR_L k0, saved_vectors(k1)
jr k0 jr k0
nop nop
1: 1:
move k0, sp move k0, sp
subu sp, k1, GDB_FR_SIZE*2 # see comment above PTR_SUBU sp, k1, GDB_FR_SIZE*2 # see comment above
LONG_S k0, GDB_FR_REG29(sp) LONG_S k0, GDB_FR_REG29(sp)
LONG_S $2, GDB_FR_REG2(sp) LONG_S $2, GDB_FR_REG2(sp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment