Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 867a521b authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

[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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 1c0c1ae4
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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