Skip to content

Commit b250424

Browse files
author
Sergey Matyukevich
committed
ARC: entry: fix syscall_trace_exit argument
Function syscall_trace_exit expects pointer to pt_regs. However r0 is also used to keep syscall return value. Restore pointer to pt_regs before calling syscall_trace_exit. Signed-off-by: Sergey Matyukevich <sergey.matyukevich@synopsys.com>
1 parent 8f0350a commit b250424

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arc/kernel/entry.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ tracesys_exit:
175175
STR r0, sp, PT_r0
176176

177177
; POST syscall trace hook
178+
MOVR r0, sp ; pt_regs
178179
bl @syscall_trace_exit
179180

180181
; don't call ret_from_system_call as it saves r0, already done above

0 commit comments

Comments
 (0)