Commit 4c655b2b authored by Gu Zitao's avatar Gu Zitao Committed by guzitao
Browse files

sw64: add basic livepatch support on SW64

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I645PM



--------------------------------

This patch adds livepatch support on SW64. It requires support from
DYNAMIC_FTRACE_WITH_REGS option. Livepatch is handled by a special
ftrace handler ftrace_regs_caller(). The livepatch handler modifies
the regs->r28 so as to make ftrace_regs_caller() return to the new
patched function.

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 19945ae5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment