Skip to content

Commit

Permalink
[MIPS] Fix kgdb exception handler from user mode.
Browse files Browse the repository at this point in the history
    
Fix a calculation of saved vector address in trap_low.
    
(damage done by lmo f4c72cc)
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed May 31, 2006
1 parent 1c0c1ae commit 867a521
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arch/mips/kernel/gdb-low.S
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@
*/
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
Expand Down

0 comments on commit 867a521

Please sign in to comment.