|
22 | 22 | #define TFSO(f) (offsetof(struct thread_fp_state, f))
|
23 | 23 | #define TSO(f) (offsetof(struct thread_struct, f))
|
24 | 24 |
|
| 25 | +/* |
| 26 | + * These are our native regset flavors. |
| 27 | + */ |
| 28 | +enum powerpc_regset { |
| 29 | + REGSET_GPR, |
| 30 | + REGSET_FPR, |
| 31 | +#ifdef CONFIG_ALTIVEC |
| 32 | + REGSET_VMX, |
| 33 | +#endif |
| 34 | +#ifdef CONFIG_VSX |
| 35 | + REGSET_VSX, |
| 36 | +#endif |
| 37 | +#ifdef CONFIG_SPE |
| 38 | + REGSET_SPE, |
| 39 | +#endif |
| 40 | +#ifdef CONFIG_PPC_TRANSACTIONAL_MEM |
| 41 | + REGSET_TM_CGPR, /* TM checkpointed GPR registers */ |
| 42 | + REGSET_TM_CFPR, /* TM checkpointed FPR registers */ |
| 43 | + REGSET_TM_CVMX, /* TM checkpointed VMX registers */ |
| 44 | + REGSET_TM_CVSX, /* TM checkpointed VSX registers */ |
| 45 | + REGSET_TM_SPR, /* TM specific SPR registers */ |
| 46 | + REGSET_TM_CTAR, /* TM checkpointed TAR register */ |
| 47 | + REGSET_TM_CPPR, /* TM checkpointed PPR register */ |
| 48 | + REGSET_TM_CDSCR, /* TM checkpointed DSCR register */ |
| 49 | +#endif |
| 50 | +#ifdef CONFIG_PPC64 |
| 51 | + REGSET_PPR, /* PPR register */ |
| 52 | + REGSET_DSCR, /* DSCR register */ |
| 53 | +#endif |
| 54 | +#ifdef CONFIG_PPC_BOOK3S_64 |
| 55 | + REGSET_TAR, /* TAR register */ |
| 56 | + REGSET_EBB, /* EBB registers */ |
| 57 | + REGSET_PMR, /* Performance Monitor Registers */ |
| 58 | +#endif |
| 59 | +#ifdef CONFIG_PPC_MEM_KEYS |
| 60 | + REGSET_PKEY, /* AMR register */ |
| 61 | +#endif |
| 62 | +}; |
| 63 | + |
25 | 64 | /* ptrace-(no)vsx */
|
26 | 65 |
|
27 | 66 | int fpr_get(struct task_struct *target, const struct user_regset *regset,
|
@@ -131,3 +170,7 @@ int tm_cgpr32_get(struct task_struct *target, const struct user_regset *regset,
|
131 | 170 | int tm_cgpr32_set(struct task_struct *target, const struct user_regset *regset,
|
132 | 171 | unsigned int pos, unsigned int count,
|
133 | 172 | const void *kbuf, const void __user *ubuf);
|
| 173 | + |
| 174 | +/* ptrace-view */ |
| 175 | + |
| 176 | +extern const struct user_regset_view user_ppc_native_view; |
0 commit comments