diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-02-27 06:14:38 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-06-19 08:39:36 -0400 |
commit | a8717d280879213eab8383e4a912d99514970e17 (patch) | |
tree | 14e104a376497ecb0104a65e7862112f27f175a5 | |
parent | 9b8c7d1e7107c30a50aae27c1f33fe706c8c6c67 (diff) |
ARC: entry.S: Trap handler to use r10 for syscall vs. brkpt decision
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/kernel/entry.S | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
505 | EXCEPTION_PROLOGUE | 505 | EXCEPTION_PROLOGUE |
506 | 506 | ||
507 | ;------- (4) What caused the Trap -------------- | 507 | ;------- (4) What caused the Trap -------------- |
508 | lr r12, [ecr] | 508 | lr r10, [ecr] |
509 | bmsk.f 0, r12, 7 | 509 | bmsk.f 0, r10, 7 |
510 | bnz trap_with_param | 510 | bnz trap_with_param |
511 | 511 | ||
512 | ; ======= (5a) Trap is due to System Call ======== | 512 | ; ======= (5a) Trap is due to System Call ======== |