ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decision
authorVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 11:14:38 +0000 (16:44 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 19 Jun 2015 12:39:36 +0000 (18:09 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/entry.S

index 0a75f81..b120f3e 100644 (file)
@@ -505,8 +505,8 @@ ENTRY(EV_Trap)
        EXCEPTION_PROLOGUE
 
        ;------- (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
 
        ; ======= (5a) Trap is due to System Call ========