提交 867a521b 编写于 作者: A Atsushi Nemoto 提交者: Ralf Baechle

[MIPS] Fix kgdb exception handler from user mode.

    
Fix a calculation of saved vector address in trap_low.
    
(damage done by lmo f4c72cc7)
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 1c0c1ae4
...@@ -54,9 +54,11 @@ ...@@ -54,9 +54,11 @@
*/ */
mfc0 k0, CP0_CAUSE mfc0 k0, CP0_CAUSE
andi k0, k0, 0x7c andi k0, k0, 0x7c
add k1, k1, k0 #ifdef CONFIG_64BIT
PTR_L k0, saved_vectors(k1) dsll k0, k0, 1
jr k0 #endif
PTR_L k1, saved_vectors(k0)
jr k1
nop nop
1: 1:
move k0, sp move k0, sp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册