diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-07-07 17:55:15 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-07-27 14:36:05 +0300 |
commit | d00d762daf1278641eec92d74011a7e625e84a68 (patch) | |
tree | 26d9820e178c5c0e9117368c6312f8b3a5cc7fe4 /arch/powerpc/include/asm/probes.h | |
parent | 7b48377e1d9f68a1b58dfd22d40b083f38ce76a0 (diff) | |
download | linux-d00d762daf1278641eec92d74011a7e625e84a68.tar.xz |
powerpc/ppc-opcode: Define and use PPC_RAW_TRAP() and PPC_RAW_TW()
Add and use PPC_RAW_TRAP() instead of opencoding.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/52c7e522e56a38e3ff0363906919445920005a8f.1657205708.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/probes.h')
-rw-r--r-- | arch/powerpc/include/asm/probes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/probes.h b/arch/powerpc/include/asm/probes.h index 00634e3145e7..e77a2ed7d938 100644 --- a/arch/powerpc/include/asm/probes.h +++ b/arch/powerpc/include/asm/probes.h @@ -9,8 +9,9 @@ */ #include <linux/types.h> #include <asm/disassemble.h> +#include <asm/ppc-opcode.h> -#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */ +#define BREAKPOINT_INSTRUCTION PPC_RAW_TRAP() /* trap */ /* Trap definitions per ISA */ #define IS_TW(instr) (((instr) & 0xfc0007fe) == 0x7c000008) |