Эх сурвалжийг харах

ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decision

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta 10 жил өмнө
parent
commit
a8717d2808

+ 2 - 2
arch/arc/kernel/entry.S

@@ -505,8 +505,8 @@ ENTRY(EV_Trap)
 	EXCEPTION_PROLOGUE
 	EXCEPTION_PROLOGUE
 
 
 	;------- (4) What caused the Trap --------------
 	;------- (4) What caused the Trap --------------
-	lr     r12, [ecr]
-	bmsk.f 0, r12, 7
+	lr     r10, [ecr]
+	bmsk.f 0, r10, 7
 	bnz    trap_with_param
 	bnz    trap_with_param
 
 
 	; ======= (5a) Trap is due to System Call ========
 	; ======= (5a) Trap is due to System Call ========