fault.h 730 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright IBM Corp. 1999, 2023
  4. */
  5. #ifndef _ASM_S390_FAULT_H
  6. #define _ASM_S390_FAULT_H
  7. union teid {
  8. unsigned long val;
  9. struct {
  10. unsigned long addr : 52; /* Translation-exception Address */
  11. unsigned long fsi : 2; /* Access Exception Fetch/Store Indication */
  12. unsigned long : 2;
  13. unsigned long b56 : 1;
  14. unsigned long : 3;
  15. unsigned long b60 : 1;
  16. unsigned long b61 : 1;
  17. unsigned long as : 2; /* ASCE Identifier */
  18. };
  19. };
  20. enum {
  21. TEID_FSI_UNKNOWN = 0, /* Unknown whether fetch or store */
  22. TEID_FSI_STORE = 1, /* Exception was due to store operation */
  23. TEID_FSI_FETCH = 2 /* Exception was due to fetch operation */
  24. };
  25. #endif /* _ASM_S390_FAULT_H */