diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-10-18 08:25:29 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:32:43 -0400 |
commit | f4c72cc737561aab0d9c7f877abbc0a853f1c465 (patch) | |
tree | 14b53c7de3e27e27eed7c715f2fe96468bfeeaa0 /arch/mips/kernel/gdb-low.S | |
parent | 0d507d61cd1cce6d920e78fe10e67296abb2a1eb (diff) |
Get 64-bit right in the kgdb stub.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/gdb-low.S')
-rw-r--r-- | arch/mips/kernel/gdb-low.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/gdb-low.S b/arch/mips/kernel/gdb-low.S index 512bedbfa7b9..83b8986f9401 100644 --- a/arch/mips/kernel/gdb-low.S +++ b/arch/mips/kernel/gdb-low.S | |||
@@ -52,16 +52,15 @@ | |||
52 | /* | 52 | /* |
53 | * Called from user mode, go somewhere else. | 53 | * Called from user mode, go somewhere else. |
54 | */ | 54 | */ |
55 | lui k1, %hi(saved_vectors) | ||
56 | mfc0 k0, CP0_CAUSE | 55 | mfc0 k0, CP0_CAUSE |
57 | andi k0, k0, 0x7c | 56 | andi k0, k0, 0x7c |
58 | add k1, k1, k0 | 57 | add k1, k1, k0 |
59 | lw k0, %lo(saved_vectors)(k1) | 58 | PTR_L k0, saved_vectors(k1) |
60 | jr k0 | 59 | jr k0 |
61 | nop | 60 | nop |
62 | 1: | 61 | 1: |
63 | move k0, sp | 62 | move k0, sp |
64 | subu sp, k1, GDB_FR_SIZE*2 # see comment above | 63 | PTR_SUBU sp, k1, GDB_FR_SIZE*2 # see comment above |
65 | LONG_S k0, GDB_FR_REG29(sp) | 64 | LONG_S k0, GDB_FR_REG29(sp) |
66 | LONG_S $2, GDB_FR_REG2(sp) | 65 | LONG_S $2, GDB_FR_REG2(sp) |
67 | 66 | ||