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
27 #ifdef CONFIG_CPU_ARM610
32 # define CPU_NAME cpu_arm6
36 #ifdef CONFIG_CPU_ARM7TDMI
41 # define CPU_NAME cpu_arm7tdmi
45 #ifdef CONFIG_CPU_ARM710
50 # define CPU_NAME cpu_arm7
54 #ifdef CONFIG_CPU_ARM720T
59 # define CPU_NAME cpu_arm720
63 #ifdef CONFIG_CPU_ARM740T
68 # define CPU_NAME cpu_arm740
72 #ifdef CONFIG_CPU_ARM9TDMI
77 # define CPU_NAME cpu_arm9tdmi
81 #ifdef CONFIG_CPU_ARM920T
86 # define CPU_NAME cpu_arm920
90 #ifdef CONFIG_CPU_ARM922T
95 # define CPU_NAME cpu_arm922
99 #ifdef CONFIG_CPU_FA526
104 # define CPU_NAME cpu_fa526
108 #ifdef CONFIG_CPU_ARM925T
113 # define CPU_NAME cpu_arm925
117 #ifdef CONFIG_CPU_ARM926T
122 # define CPU_NAME cpu_arm926
126 #ifdef CONFIG_CPU_ARM940T
131 # define CPU_NAME cpu_arm940
135 #ifdef CONFIG_CPU_ARM946E
140 # define CPU_NAME cpu_arm946
144 #ifdef CONFIG_CPU_SA110
149 # define CPU_NAME cpu_sa110
153 #ifdef CONFIG_CPU_SA1100
158 # define CPU_NAME cpu_sa1100
162 #ifdef CONFIG_CPU_ARM1020
167 # define CPU_NAME cpu_arm1020
171 #ifdef CONFIG_CPU_ARM1020E
176 # define CPU_NAME cpu_arm1020e
180 #ifdef CONFIG_CPU_ARM1022
185 # define CPU_NAME cpu_arm1022
189 #ifdef CONFIG_CPU_ARM1026
194 # define CPU_NAME cpu_arm1026
198 #ifdef CONFIG_CPU_XSCALE
203 # define CPU_NAME cpu_xscale
207 #ifdef CONFIG_CPU_XSC3
212 # define CPU_NAME cpu_xsc3
216 #ifdef CONFIG_CPU_MOHAWK
221 # define CPU_NAME cpu_mohawk
225 #ifdef CONFIG_CPU_FEROCEON
230 # define CPU_NAME cpu_feroceon
239 # define CPU_NAME cpu_v6
248 # define CPU_NAME cpu_v7
255 #include <asm/cpu-single.h>
257 #include <asm/cpu-multi32.h>
260 #include <asm/memory.h>
264 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
266 #define cpu_get_pgd() \
269 __asm__("mrc p15, 0, %0, c2, c0, 0" \
270 : "=r" (pg) : : "cc"); \
272 (pgd_t *)phys_to_virt(pg); \
277 #endif /* __ASSEMBLY__ */
278 #endif /* __KERNEL__ */
279 #endif /* __ASM_PROCFNS_H */