diff options
| author | Christophe Leroy <[email protected]> | 2021-04-20 14:02:06 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-04-21 12:52:32 +0000 |
| commit | 693557ebf407a85ea400a0b501bb97687d8f4856 (patch) | |
| tree | 9010c7685a1703c2d191bd7582133d218df9ab15 /arch/powerpc/lib/code-patching.c | |
| parent | powerpc/irq: Enhance readability of trap types (diff) | |
| download | kernel-693557ebf407a85ea400a0b501bb97687d8f4856.tar.gz kernel-693557ebf407a85ea400a0b501bb97687d8f4856.zip | |
powerpc/inst: ppc_inst_as_u64() becomes ppc_inst_as_ulong()
In order to simplify use on PPC32, change ppc_inst_as_u64()
into ppc_inst_as_ulong() that returns the 32 bits instruction
on PPC32.
Will be used when porting OPTPROBES to PPC32.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/22cadf29620664b600b82026d2a72b8b23351777.1618927318.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
| -rw-r--r-- | arch/powerpc/lib/code-patching.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c index 65aec4d6d9ba..870b30d9be2f 100644 --- a/arch/powerpc/lib/code-patching.c +++ b/arch/powerpc/lib/code-patching.c @@ -26,7 +26,7 @@ static int __patch_instruction(struct ppc_inst *exec_addr, struct ppc_inst instr __put_kernel_nofault(patch_addr, &val, u32, failed); } else { - u64 val = ppc_inst_as_u64(instr); + u64 val = ppc_inst_as_ulong(instr); __put_kernel_nofault(patch_addr, &val, u64, failed); } |
