1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/include/asm/glue-pf.h
5 * Copyright (C) 1997-1999 Russell King
6 * Copyright (C) 2000-2002 Deep Blue Solutions Ltd.
14 * Prefetch Abort Model
17 * We have the following to choose from:
18 * legacy - no IFSR, no IFAR
19 * v6 - ARMv6: IFSR, no IFAR
20 * v7 - ARMv7: IFSR and IFAR
23 #undef CPU_PABORT_HANDLER
26 #ifdef CONFIG_CPU_PABRT_LEGACY
27 # ifdef CPU_PABORT_HANDLER
28 # define MULTI_PABORT 1
30 # define CPU_PABORT_HANDLER legacy_pabort
34 #ifdef CONFIG_CPU_PABRT_V6
35 # ifdef CPU_PABORT_HANDLER
36 # define MULTI_PABORT 1
38 # define CPU_PABORT_HANDLER v6_pabort
42 #ifdef CONFIG_CPU_PABRT_V7
43 # ifdef CPU_PABORT_HANDLER
44 # define MULTI_PABORT 1
46 # define CPU_PABORT_HANDLER v7_pabort
50 #ifndef CPU_PABORT_HANDLER
51 #error Unknown prefetch abort handler type