Skip to content

Commit 280f1db

Browse files
Gu Yuchenopsiff
authored andcommitted
sw64: ftrace: restore the register storing direct call address
The register storing direct called trampoline's address is only saved, but not restored. This commit fixes this issue. Signed-off-by: Gu Yuchen <[email protected]> Reviewed-by: He Sheng <[email protected]> Signed-off-by: Gu Zitao <[email protected]>
1 parent d008030 commit 280f1db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/sw_64/kernel/entry-ftrace.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ ftrace_regs_call:
341341
RESTORE_GRAPH_REG_ARGS
342342
call ftrace_graph_caller
343343
#endif
344+
ldl $2, PT_REGS_R2($sp) // load direct call addr
344345
RESTORE_PT_REGS
345346
bne $2, .Ldirect
346347
ret $31, ($28), 1

0 commit comments

Comments
 (0)