aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-02-11 04:10:55 -0500
committerVineet Gupta <vgupta@synopsys.com>2013-02-15 12:46:21 -0500
commit3eb3e7dd53a83cbe6e7b95aa87d2c5dc861233a6 (patch)
treef89a94aef668dc41e854b358c863a7a4f9443158
parent7f85e5ec0d451e4a12037dcd6936f2d7494b2c6c (diff)
ARC: Fix pt_orig_r8 access
Syscall restarting fixes made pt_regs->orig_r8 a short word, which was not reflected in the assembler code - thus could potentially break gdb debugging. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r--arch/arc/kernel/entry.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S
index 3f628ca9b71a..ef6800ba2f03 100644
--- a/arch/arc/kernel/entry.S
+++ b/arch/arc/kernel/entry.S
@@ -496,7 +496,7 @@ tracesys_exit:
496trap_with_param: 496trap_with_param:
497 497
498 ; stop_pc info by gdb needs this info 498 ; stop_pc info by gdb needs this info
499 st orig_r8_IS_BRKPT, [sp, PT_orig_r8] 499 stw orig_r8_IS_BRKPT, [sp, PT_orig_r8]
500 500
501 mov r0, r12 501 mov r0, r12
502 lr r1, [efa] 502 lr r1, [efa]
@@ -721,7 +721,7 @@ not_exception:
721 ; things to what they were, before returning from L2 context 721 ; things to what they were, before returning from L2 context
722 ;---------------------------------------------------------------- 722 ;----------------------------------------------------------------
723 723
724 ld r9, [sp, PT_orig_r8] ; get orig_r8 to make sure it is 724 ldw r9, [sp, PT_orig_r8] ; get orig_r8 to make sure it is
725 brne r9, orig_r8_IS_IRQ2, 149f ; infact a L2 ISR ret path 725 brne r9, orig_r8_IS_IRQ2, 149f ; infact a L2 ISR ret path
726 726
727 ld r9, [sp, PT_status32] ; get statu32_l2 (saved in pt_regs) 727 ld r9, [sp, PT_status32] ; get statu32_l2 (saved in pt_regs)