]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64/kprobes: Tidy up sign-extension usage
authorRobin Murphy <robin.murphy@arm.com>
Tue, 18 Oct 2016 12:46:27 +0000 (13:46 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:03 +0000 (18:15 +0000)
commit4890ae46911c99d61fb622605c2d81bf8c86b209
tree5d62056f1f1f9cea14cc0c658786917ae647e2ba
parentbe8f185d8af4dbd450023a42a48c6faa8cbcdfe6
arm64/kprobes: Tidy up sign-extension usage

Kprobes does not need its own homebrewed (and frankly inscrutable) sign
extension macro; just use the standard kernel functions instead. Since
the compiler actually recognises the sign-extension idiom of the latter,
we also get the small bonus of some nicer codegen, as each displacement
calculation helper then compiles to a single optimal SBFX instruction.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/probes/simulate-insn.c