From: Vineet Gupta Date: Fri, 27 Feb 2015 11:14:38 +0000 (+0530) Subject: ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decision X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a8717d280879213eab8383e4a912d99514970e17;p=openwrt%2Fstaging%2Fblogic.git ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decision Signed-off-by: Vineet Gupta --- diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index 0a75f81e2853..b120f3e1e13e 100644 --- a/arch/arc/kernel/entry.S +++ b/arch/arc/kernel/entry.S @@ -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 ========