File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1010#define _PPC_BOOK3S_64_HW_BREAKPOINT_H
1111
1212#include <asm/cpu_has_feature.h>
13- #include <asm/inst.h>
1413
1514#ifdef __KERNEL__
1615struct arch_hw_breakpoint {
Original file line number Diff line number Diff line change 33#define _ASM_POWERPC_INST_H
44
55#include <asm/ppc-opcode.h>
6+ #include <asm/reg.h>
67
78#define ___get_user_instr (gu_op , dest , ptr ) \
89({ \
3536 */
3637
3738#if defined(CONFIG_PPC64 ) || defined(__CHECKER__ )
38- typedef struct {
39- u32 val ;
40- #ifdef CONFIG_PPC64
41- u32 suffix ;
42- #endif
43- } __packed ppc_inst_t ;
44-
4539static inline u32 ppc_inst_val (ppc_inst_t x )
4640{
4741 return x .val ;
@@ -50,8 +44,6 @@ static inline u32 ppc_inst_val(ppc_inst_t x)
5044#define ppc_inst (x ) ((ppc_inst_t){ .val = (x) })
5145
5246#else
53- typedef u32 ppc_inst_t ;
54-
5547static inline u32 ppc_inst_val (ppc_inst_t x )
5648{
5749 return x ;
Original file line number Diff line number Diff line change 13661366
13671367/* Macros for setting and retrieving special purpose registers */
13681368#ifndef __ASSEMBLY__
1369+
1370+ #if defined(CONFIG_PPC64 ) || defined(__CHECKER__ )
1371+ typedef struct {
1372+ u32 val ;
1373+ #ifdef CONFIG_PPC64
1374+ u32 suffix ;
1375+ #endif
1376+ } __packed ppc_inst_t ;
1377+ #else
1378+ typedef u32 ppc_inst_t ;
1379+ #endif
1380+
13691381#define mfmsr () ({unsigned long rval; \
13701382 asm volatile("mfmsr %0" : "=r" (rval) : \
13711383 : "memory"); rval;})
Original file line number Diff line number Diff line change 1111
1212#include <linux/notifier.h>
1313#include <asm/probes.h>
14- #include <asm/inst.h>
1514
1615typedef ppc_opcode_t uprobe_opcode_t ;
1716
You can’t perform that action at this time.
0 commit comments