fsr-3level.c 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. static struct fsr_info fsr_info[] = {
  2. { do_bad, SIGBUS, 0, "unknown 0" },
  3. { do_bad, SIGBUS, 0, "unknown 1" },
  4. { do_bad, SIGBUS, 0, "unknown 2" },
  5. { do_bad, SIGBUS, 0, "unknown 3" },
  6. { do_bad, SIGBUS, 0, "reserved translation fault" },
  7. { do_translation_fault, SIGSEGV, SEGV_MAPERR, "level 1 translation fault" },
  8. { do_translation_fault, SIGSEGV, SEGV_MAPERR, "level 2 translation fault" },
  9. { do_page_fault, SIGSEGV, SEGV_MAPERR, "level 3 translation fault" },
  10. { do_bad, SIGBUS, 0, "reserved access flag fault" },
  11. { do_bad, SIGSEGV, SEGV_ACCERR, "level 1 access flag fault" },
  12. { do_page_fault, SIGSEGV, SEGV_ACCERR, "level 2 access flag fault" },
  13. { do_page_fault, SIGSEGV, SEGV_ACCERR, "level 3 access flag fault" },
  14. { do_bad, SIGBUS, 0, "reserved permission fault" },
  15. { do_bad, SIGSEGV, SEGV_ACCERR, "level 1 permission fault" },
  16. { do_page_fault, SIGSEGV, SEGV_ACCERR, "level 2 permission fault" },
  17. { do_page_fault, SIGSEGV, SEGV_ACCERR, "level 3 permission fault" },
  18. { do_bad, SIGBUS, 0, "synchronous external abort" },
  19. { do_bad, SIGBUS, 0, "asynchronous external abort" },
  20. { do_bad, SIGBUS, 0, "unknown 18" },
  21. { do_bad, SIGBUS, 0, "unknown 19" },
  22. { do_bad, SIGBUS, 0, "synchronous abort (translation table walk)" },
  23. { do_bad, SIGBUS, 0, "synchronous abort (translation table walk)" },
  24. { do_bad, SIGBUS, 0, "synchronous abort (translation table walk)" },
  25. { do_bad, SIGBUS, 0, "synchronous abort (translation table walk)" },
  26. { do_bad, SIGBUS, 0, "synchronous parity error" },
  27. { do_bad, SIGBUS, 0, "asynchronous parity error" },
  28. { do_bad, SIGBUS, 0, "unknown 26" },
  29. { do_bad, SIGBUS, 0, "unknown 27" },
  30. { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" },
  31. { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" },
  32. { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" },
  33. { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" },
  34. { do_bad, SIGBUS, 0, "unknown 32" },
  35. { do_bad, SIGBUS, BUS_ADRALN, "alignment fault" },
  36. { do_bad, SIGBUS, 0, "debug event" },
  37. { do_bad, SIGBUS, 0, "unknown 35" },
  38. { do_bad, SIGBUS, 0, "unknown 36" },
  39. { do_bad, SIGBUS, 0, "unknown 37" },
  40. { do_bad, SIGBUS, 0, "unknown 38" },
  41. { do_bad, SIGBUS, 0, "unknown 39" },
  42. { do_bad, SIGBUS, 0, "unknown 40" },
  43. { do_bad, SIGBUS, 0, "unknown 41" },
  44. { do_bad, SIGBUS, 0, "unknown 42" },
  45. { do_bad, SIGBUS, 0, "unknown 43" },
  46. { do_bad, SIGBUS, 0, "unknown 44" },
  47. { do_bad, SIGBUS, 0, "unknown 45" },
  48. { do_bad, SIGBUS, 0, "unknown 46" },
  49. { do_bad, SIGBUS, 0, "unknown 47" },
  50. { do_bad, SIGBUS, 0, "unknown 48" },
  51. { do_bad, SIGBUS, 0, "unknown 49" },
  52. { do_bad, SIGBUS, 0, "unknown 50" },
  53. { do_bad, SIGBUS, 0, "unknown 51" },
  54. { do_bad, SIGBUS, 0, "implementation fault (lockdown abort)" },
  55. { do_bad, SIGBUS, 0, "unknown 53" },
  56. { do_bad, SIGBUS, 0, "unknown 54" },
  57. { do_bad, SIGBUS, 0, "unknown 55" },
  58. { do_bad, SIGBUS, 0, "unknown 56" },
  59. { do_bad, SIGBUS, 0, "unknown 57" },
  60. { do_bad, SIGBUS, 0, "implementation fault (coprocessor abort)" },
  61. { do_bad, SIGBUS, 0, "unknown 59" },
  62. { do_bad, SIGBUS, 0, "unknown 60" },
  63. { do_bad, SIGBUS, 0, "unknown 61" },
  64. { do_bad, SIGBUS, 0, "unknown 62" },
  65. { do_bad, SIGBUS, 0, "unknown 63" },
  66. };
  67. #define ifsr_info fsr_info