glue-pf.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * arch/arm/include/asm/glue-pf.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_PF_H
  12. #define ASM_GLUE_PF_H
  13. #include <asm/glue.h>
  14. /*
  15. * Prefetch Abort Model
  16. * ================
  17. *
  18. * We have the following to choose from:
  19. * legacy - no IFSR, no IFAR
  20. * v6 - ARMv6: IFSR, no IFAR
  21. * v7 - ARMv7: IFSR and IFAR
  22. */
  23. #undef CPU_PABORT_HANDLER
  24. #undef MULTI_PABORT
  25. #ifdef CONFIG_CPU_PABRT_LEGACY
  26. # ifdef CPU_PABORT_HANDLER
  27. # define MULTI_PABORT 1
  28. # else
  29. # define CPU_PABORT_HANDLER legacy_pabort
  30. # endif
  31. #endif
  32. #ifdef CONFIG_CPU_PABRT_V6
  33. # ifdef CPU_PABORT_HANDLER
  34. # define MULTI_PABORT 1
  35. # else
  36. # define CPU_PABORT_HANDLER v6_pabort
  37. # endif
  38. #endif
  39. #ifdef CONFIG_CPU_PABRT_V7
  40. # ifdef CPU_PABORT_HANDLER
  41. # define MULTI_PABORT 1
  42. # else
  43. # define CPU_PABORT_HANDLER v7_pabort
  44. # endif
  45. #endif
  46. #ifndef CPU_PABORT_HANDLER
  47. #error Unknown prefetch abort handler type
  48. #endif
  49. #endif