glue-df.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * arch/arm/include/asm/glue-df.h
  3. *
  4. * Copyright (C) 1997-1999 Russell King
  5. * Copyright (C) 2000-2002 Deep Blue Solutions Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef ASM_GLUE_DF_H
  12. #define ASM_GLUE_DF_H
  13. #include <asm/glue.h>
  14. /*
  15. * Data Abort Model
  16. * ================
  17. *
  18. * We have the following to choose from:
  19. * arm7 - ARM7 style
  20. * v4_early - ARMv4 without Thumb early abort handler
  21. * v4t_late - ARMv4 with Thumb late abort handler
  22. * v4t_early - ARMv4 with Thumb early abort handler
  23. * v5t_early - ARMv5 with Thumb early abort handler
  24. * v5tj_early - ARMv5 with Thumb and Java early abort handler
  25. * xscale - ARMv5 with Thumb with Xscale extensions
  26. * v6_early - ARMv6 generic early abort handler
  27. * v7_early - ARMv7 generic early abort handler
  28. */
  29. #undef CPU_DABORT_HANDLER
  30. #undef MULTI_DABORT
  31. #ifdef CONFIG_CPU_ABRT_EV4
  32. # ifdef CPU_DABORT_HANDLER
  33. # define MULTI_DABORT 1
  34. # else
  35. # define CPU_DABORT_HANDLER v4_early_abort
  36. # endif
  37. #endif
  38. #ifdef CONFIG_CPU_ABRT_LV4T
  39. # ifdef CPU_DABORT_HANDLER
  40. # define MULTI_DABORT 1
  41. # else
  42. # define CPU_DABORT_HANDLER v4t_late_abort
  43. # endif
  44. #endif
  45. #ifdef CONFIG_CPU_ABRT_EV4T
  46. # ifdef CPU_DABORT_HANDLER
  47. # define MULTI_DABORT 1
  48. # else
  49. # define CPU_DABORT_HANDLER v4t_early_abort
  50. # endif
  51. #endif
  52. #ifdef CONFIG_CPU_ABRT_EV5T
  53. # ifdef CPU_DABORT_HANDLER
  54. # define MULTI_DABORT 1
  55. # else
  56. # define CPU_DABORT_HANDLER v5t_early_abort
  57. # endif
  58. #endif
  59. #ifdef CONFIG_CPU_ABRT_EV5TJ
  60. # ifdef CPU_DABORT_HANDLER
  61. # define MULTI_DABORT 1
  62. # else
  63. # define CPU_DABORT_HANDLER v5tj_early_abort
  64. # endif
  65. #endif
  66. #ifdef CONFIG_CPU_ABRT_EV6
  67. # ifdef CPU_DABORT_HANDLER
  68. # define MULTI_DABORT 1
  69. # else
  70. # define CPU_DABORT_HANDLER v6_early_abort
  71. # endif
  72. #endif
  73. #ifdef CONFIG_CPU_ABRT_EV7
  74. # ifdef CPU_DABORT_HANDLER
  75. # define MULTI_DABORT 1
  76. # else
  77. # define CPU_DABORT_HANDLER v7_early_abort
  78. # endif
  79. #endif
  80. #ifdef CONFIG_CPU_ABRT_NOMMU
  81. # ifdef CPU_DABORT_HANDLER
  82. # define MULTI_DABORT 1
  83. # else
  84. # define CPU_DABORT_HANDLER nommu_early_abort
  85. # endif
  86. #endif
  87. #ifndef CPU_DABORT_HANDLER
  88. #error Unknown data abort handler type
  89. #endif
  90. #endif