dexcr.h (cdd5b5a9761fd66d17586e4f4ba6588c70e640ea) | dexcr.h (5bfa66bf86d792bbcc76bc09cf99a2ae9d6e0eec) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * POWER Dynamic Execution Control Facility (DEXCR) 4 * 5 * This header file contains helper functions and macros 6 * required for all the DEXCR related test cases. 7 */ 8#ifndef _SELFTESTS_POWERPC_DEXCR_DEXCR_H --- 14 unchanged lines hidden (view full) --- 23 ((((i) >> 3) & 0x1F) << 21 | (a) << 16 | (b) << 11 | (((i) >> 8) & 0x1)) 24#define PPC_RAW_HASHST(b, i, a) \ 25 str(.long (0x7C0005A4 | PPC_RAW_HASH_ARGS(b, i, a));) 26#define PPC_RAW_HASHCHK(b, i, a) \ 27 str(.long (0x7C0005E4 | PPC_RAW_HASH_ARGS(b, i, a));) 28 29bool dexcr_exists(void); 30 | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * POWER Dynamic Execution Control Facility (DEXCR) 4 * 5 * This header file contains helper functions and macros 6 * required for all the DEXCR related test cases. 7 */ 8#ifndef _SELFTESTS_POWERPC_DEXCR_DEXCR_H --- 14 unchanged lines hidden (view full) --- 23 ((((i) >> 3) & 0x1F) << 21 | (a) << 16 | (b) << 11 | (((i) >> 8) & 0x1)) 24#define PPC_RAW_HASHST(b, i, a) \ 25 str(.long (0x7C0005A4 | PPC_RAW_HASH_ARGS(b, i, a));) 26#define PPC_RAW_HASHCHK(b, i, a) \ 27 str(.long (0x7C0005E4 | PPC_RAW_HASH_ARGS(b, i, a));) 28 29bool dexcr_exists(void); 30 |
31bool pr_dexcr_aspect_supported(unsigned long which); 32 33bool pr_dexcr_aspect_editable(unsigned long which); 34 35int pr_get_dexcr(unsigned long pr_aspect); 36 37int pr_set_dexcr(unsigned long pr_aspect, unsigned long ctrl); 38 39unsigned int pr_which_to_aspect(unsigned long which); 40 |
|
31bool hashchk_triggers(void); 32 33enum dexcr_source { 34 DEXCR, /* Userspace DEXCR value */ 35 HDEXCR, /* Hypervisor enforced DEXCR value */ 36 EFFECTIVE, /* Bitwise OR of UDEXCR and ENFORCED DEXCR bits */ 37}; 38 39unsigned int get_dexcr(enum dexcr_source source); 40 41void await_child_success(pid_t pid); 42 43void hashst(unsigned long lr, void *sp); 44 45void hashchk(unsigned long lr, void *sp); 46 47void do_bad_hashchk(void); 48 49#endif /* _SELFTESTS_POWERPC_DEXCR_DEXCR_H */ | 41bool hashchk_triggers(void); 42 43enum dexcr_source { 44 DEXCR, /* Userspace DEXCR value */ 45 HDEXCR, /* Hypervisor enforced DEXCR value */ 46 EFFECTIVE, /* Bitwise OR of UDEXCR and ENFORCED DEXCR bits */ 47}; 48 49unsigned int get_dexcr(enum dexcr_source source); 50 51void await_child_success(pid_t pid); 52 53void hashst(unsigned long lr, void *sp); 54 55void hashchk(unsigned long lr, void *sp); 56 57void do_bad_hashchk(void); 58 59#endif /* _SELFTESTS_POWERPC_DEXCR_DEXCR_H */ |