@@ -306,4 +306,26 @@ struct prctl_mm_map {
306
306
# define PR_RISCV_V_VSTATE_CTRL_NEXT_MASK 0xc
307
307
# define PR_RISCV_V_VSTATE_CTRL_MASK 0x1f
308
308
309
+ #define PR_RISCV_SET_ICACHE_FLUSH_CTX 71
310
+ # define PR_RISCV_CTX_SW_FENCEI_ON 0
311
+ # define PR_RISCV_CTX_SW_FENCEI_OFF 1
312
+ # define PR_RISCV_SCOPE_PER_PROCESS 0
313
+ # define PR_RISCV_SCOPE_PER_THREAD 1
314
+
315
+ /* PowerPC Dynamic Execution Control Register (DEXCR) controls */
316
+ #define PR_PPC_GET_DEXCR 72
317
+ #define PR_PPC_SET_DEXCR 73
318
+ /* DEXCR aspect to act on */
319
+ # define PR_PPC_DEXCR_SBHE 0 /* Speculative branch hint enable */
320
+ # define PR_PPC_DEXCR_IBRTPD 1 /* Indirect branch recurrent target prediction disable */
321
+ # define PR_PPC_DEXCR_SRAPD 2 /* Subroutine return address prediction disable */
322
+ # define PR_PPC_DEXCR_NPHIE 3 /* Non-privileged hash instruction enable */
323
+ /* Action to apply / return */
324
+ # define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 /* Aspect can be modified with PR_PPC_SET_DEXCR */
325
+ # define PR_PPC_DEXCR_CTRL_SET 0x2 /* Set the aspect for this process */
326
+ # define PR_PPC_DEXCR_CTRL_CLEAR 0x4 /* Clear the aspect for this process */
327
+ # define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 /* Set the aspect on exec */
328
+ # define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */
329
+ # define PR_PPC_DEXCR_CTRL_MASK 0x1f
330
+
309
331
#endif /* _LINUX_PRCTL_H */
0 commit comments