diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-07-07 16:55:15 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-07-27 21:36:05 +1000 |
commit | d00d762daf1278641eec92d74011a7e625e84a68 (patch) | |
tree | 26d9820e178c5c0e9117368c6312f8b3a5cc7fe4 /arch/powerpc/xmon/xmon.c | |
parent | 7b48377e1d9f68a1b58dfd22d40b083f38ce76a0 (diff) | |
download | linux-d00d762daf1278641eec92d74011a7e625e84a68.tar.gz linux-d00d762daf1278641eec92d74011a7e625e84a68.tar.bz2 linux-d00d762daf1278641eec92d74011a7e625e84a68.zip |
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/xmon/xmon.c')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index f80c714f1d49..26ef3388c24c 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -116,7 +116,7 @@ struct bpt { static struct bpt bpts[NBPTS]; static struct bpt dabr[HBP_NUM_MAX]; static struct bpt *iabr; -static unsigned bpinstr = 0x7fe00008; /* trap */ +static unsigned int bpinstr = PPC_RAW_TRAP(); #define BP_NUM(bp) ((bp) - bpts + 1) |