aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/include/asm/entry.h')
-rw-r--r--arch/arc/include/asm/entry.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arc/include/asm/entry.h b/arch/arc/include/asm/entry.h
index 72a7ed47117a..de01bc842a9a 100644
--- a/arch/arc/include/asm/entry.h
+++ b/arch/arc/include/asm/entry.h
@@ -422,18 +422,7 @@
422 * Save scratch regs for sys calls 422 * Save scratch regs for sys calls
423 *-------------------------------------------------------------*/ 423 *-------------------------------------------------------------*/
424.macro SAVE_ALL_TRAP 424.macro SAVE_ALL_TRAP
425 /* 425 SAVE_ALL_EXCEPTION orig_r8_IS_SCALL
426 * Setup pt_regs->orig_r8.
427 * Encode syscall number (r8) in upper short word of event type (r9)
428 * N.B. #1: This is already endian safe (see ptrace.h)
429 * #2: Only r9 can be used as scratch as it is already clobbered
430 * and it's contents are no longer needed by the latter part
431 * of exception prologue
432 */
433 lsl r9, r8, 16
434 or r9, r9, orig_r8_IS_SCALL
435
436 SAVE_ALL_EXCEPTION r9
437.endm 426.endm
438 427
439/*-------------------------------------------------------------- 428/*--------------------------------------------------------------