Skip to content

Commit

Permalink
Get 64-bit right in the kgdb stub.
Browse files Browse the repository at this point in the history
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 0d507d6 commit f4c72cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/mips/kernel/gdb-low.S
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,15 @@
/*
* Called from user mode, go somewhere else.
*/
lui k1, %hi(saved_vectors)
mfc0 k0, CP0_CAUSE
andi k0, k0, 0x7c
add k1, k1, k0
lw k0, %lo(saved_vectors)(k1)
PTR_L k0, saved_vectors(k1)
jr k0
nop
1:
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 $2, GDB_FR_REG2(sp)

Expand Down

0 comments on commit f4c72cc

Please sign in to comment.