arm64: ftrace: always pass instrumented pc in x0
authorMark Rutland <mark.rutland@arm.com>
Thu, 15 Nov 2018 22:42:03 +0000 (22:42 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 30 Nov 2018 13:29:05 +0000 (13:29 +0000)
commit7dc48bf96aa0fc8aa5b38cc3e5c36ac03171e680
tree24698b7b4d8c5e972e6b7bc898634e2d20032df2
parent49e258e05e8e56d53af20be481b311c43d7c286b
arm64: ftrace: always pass instrumented pc in x0

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: Mark 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: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/entry-ftrace.S
arch/arm64/kernel/ftrace.c