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>
This commit is contained in:
parent
7f85e5ec0d
commit
3eb3e7dd53
1 changed files with 2 additions and 2 deletions
|
@ -496,7 +496,7 @@ tracesys_exit:
|
||||||
trap_with_param:
|
trap_with_param:
|
||||||
|
|
||||||
; stop_pc info by gdb needs this info
|
; stop_pc info by gdb needs this info
|
||||||
st orig_r8_IS_BRKPT, [sp, PT_orig_r8]
|
stw orig_r8_IS_BRKPT, [sp, PT_orig_r8]
|
||||||
|
|
||||||
mov r0, r12
|
mov r0, r12
|
||||||
lr r1, [efa]
|
lr r1, [efa]
|
||||||
|
@ -721,7 +721,7 @@ not_exception:
|
||||||
; things to what they were, before returning from L2 context
|
; things to what they were, before returning from L2 context
|
||||||
;----------------------------------------------------------------
|
;----------------------------------------------------------------
|
||||||
|
|
||||||
ld r9, [sp, PT_orig_r8] ; get orig_r8 to make sure it is
|
ldw r9, [sp, PT_orig_r8] ; get orig_r8 to make sure it is
|
||||||
brne r9, orig_r8_IS_IRQ2, 149f ; infact a L2 ISR ret path
|
brne r9, orig_r8_IS_IRQ2, 149f ; infact a L2 ISR ret path
|
||||||
|
|
||||||
ld r9, [sp, PT_status32] ; get statu32_l2 (saved in pt_regs)
|
ld r9, [sp, PT_status32] ; get statu32_l2 (saved in pt_regs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue