/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Headers for fault.c * * Copyright 2021 IBM Corp. * * Authors: * Janosch Frank */ #ifndef _S390X_FAULT_H_ #define _S390X_FAULT_H_ #include #include #include /* Instruction execution prevention, i.e. no-execute, 101 */ static inline bool prot_is_iep(union teid teid) { if (!test_facility(130)) return false; /* IEP installed -> ESOP2 installed */ return teid_esop2_prot_code(teid) == PROT_IEP; } void print_decode_teid(uint64_t teid); #endif /* _S390X_FAULT_H_ */