2 * arch/arm/include/asm/proc-fns.h
4 * Copyright (C) 1997-1999 Russell King
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
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.
11 #ifndef __ASM_PROCFNS_H
12 #define __ASM_PROCFNS_H
18 * Work out if we need multiple CPU support
24 * CPU_NAME - the prefix for CPU related functions
28 # ifdef CONFIG_CPU_ARM610
33 # define CPU_NAME cpu_arm6
36 # ifdef CONFIG_CPU_ARM7TDMI
41 # define CPU_NAME cpu_arm7tdmi
44 # ifdef CONFIG_CPU_ARM710
49 # define CPU_NAME cpu_arm7
52 # ifdef CONFIG_CPU_ARM720T
57 # define CPU_NAME cpu_arm720
60 # ifdef CONFIG_CPU_ARM740T
65 # define CPU_NAME cpu_arm740
68 # ifdef CONFIG_CPU_ARM9TDMI
73 # define CPU_NAME cpu_arm9tdmi
76 # ifdef CONFIG_CPU_ARM920T
81 # define CPU_NAME cpu_arm920
84 # ifdef CONFIG_CPU_ARM922T
89 # define CPU_NAME cpu_arm922
92 # ifdef CONFIG_CPU_FA526
97 # define CPU_NAME cpu_fa526
100 # ifdef CONFIG_CPU_ARM925T
105 # define CPU_NAME cpu_arm925
108 # ifdef CONFIG_CPU_ARM926T
113 # define CPU_NAME cpu_arm926
116 # ifdef CONFIG_CPU_ARM940T
121 # define CPU_NAME cpu_arm940
124 # ifdef CONFIG_CPU_ARM946E
129 # define CPU_NAME cpu_arm946
132 # ifdef CONFIG_CPU_SA110
137 # define CPU_NAME cpu_sa110
140 # ifdef CONFIG_CPU_SA1100
145 # define CPU_NAME cpu_sa1100
148 # ifdef CONFIG_CPU_ARM1020
153 # define CPU_NAME cpu_arm1020
156 # ifdef CONFIG_CPU_ARM1020E
161 # define CPU_NAME cpu_arm1020e
164 # ifdef CONFIG_CPU_ARM1022
169 # define CPU_NAME cpu_arm1022
172 # ifdef CONFIG_CPU_ARM1026
177 # define CPU_NAME cpu_arm1026
180 # ifdef CONFIG_CPU_XSCALE
185 # define CPU_NAME cpu_xscale
188 # ifdef CONFIG_CPU_XSC3
193 # define CPU_NAME cpu_xsc3
196 # ifdef CONFIG_CPU_MOHAWK
201 # define CPU_NAME cpu_mohawk
204 # ifdef CONFIG_CPU_FEROCEON
209 # define CPU_NAME cpu_feroceon
212 # ifdef CONFIG_CPU_V6
217 # define CPU_NAME cpu_v6
220 # ifdef CONFIG_CPU_V7
225 # define CPU_NAME cpu_v7
233 #include <asm/cpu-single.h>
235 #include <asm/cpu-multi32.h>
238 #include <asm/memory.h>
242 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
244 #define cpu_get_pgd() \
247 __asm__("mrc p15, 0, %0, c2, c0, 0" \
248 : "=r" (pg) : : "cc"); \
250 (pgd_t *)phys_to_virt(pg); \
255 #endif /* __ASSEMBLY__ */
256 #endif /* __KERNEL__ */
257 #endif /* __ASM_PROCFNS_H */