File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 581
581
582
582
#define PPC_RAW_BRANCH (offset ) (0x48000000 | PPC_LI(offset))
583
583
#define PPC_RAW_BL (offset ) (0x48000001 | PPC_LI(offset))
584
+ #define PPC_RAW_TW (t0 , a , b ) (0x7f000008 | ___PPC_RS(t0) | ___PPC_RA(a) | ___PPC_RB(b))
585
+ #define PPC_RAW_TRAP () PPC_RAW_TW(31, 0, 0)
584
586
585
587
/* Deal with instructions that older assemblers aren't aware of */
586
588
#define PPC_BCCTR_FLUSH stringify_in_c(.long PPC_INST_BCCTR_FLUSH)
Original file line number Diff line number Diff line change 9
9
*/
10
10
#include <linux/types.h>
11
11
#include <asm/disassemble.h>
12
+ #include <asm/ppc-opcode.h>
12
13
13
- #define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */
14
+ #define BREAKPOINT_INSTRUCTION PPC_RAW_TRAP() /* trap */
14
15
15
16
/* Trap definitions per ISA */
16
17
#define IS_TW (instr ) (((instr) & 0xfc0007fe) == 0x7c000008)
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ struct bpt {
116
116
static struct bpt bpts [NBPTS ];
117
117
static struct bpt dabr [HBP_NUM_MAX ];
118
118
static struct bpt * iabr ;
119
- static unsigned bpinstr = 0x7fe00008 ; /* trap */
119
+ static unsigned int bpinstr = PPC_RAW_TRAP ();
120
120
121
121
#define BP_NUM (bp ) ((bp) - bpts + 1)
122
122
You can’t perform that action at this time.
0 commit comments