• M
    arm64: ftrace: always pass instrumented pc in x0 · 54760b8d
    Mark Rutland 提交于
    commit 7dc48bf96aa0fc8aa5b38cc3e5c36ac03171e680 upstream.
    
    The core ftrace hooks take the instrumented PC in x0, but for some
    reason arm64's prepare_ftrace_return() takes this in x1.
    
    For consistency, let's flip the argument order and always pass the
    instrumented PC in x0.
    
    There should be no functional change as a result of this patch.
    Signed-off-by: NMark Rutland <mark.rutland@arm.com>
    Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Torsten Duwe <duwe@suse.de>
    Cc: Will Deacon <will.deacon@arm.com>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    Signed-off-by: Zou Cao<zoucao@linux.alibaba.com>
    Acked-by: NBaoyou Xie <xie.baoyou@linux.alibaba.com>
    54760b8d
entry-ftrace.S 9.4 KB