2 * linux/include/asm-arm/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_ARM925T
97 # define CPU_NAME cpu_arm925
100 # ifdef CONFIG_CPU_ARM926T
105 # define CPU_NAME cpu_arm926
108 # ifdef CONFIG_CPU_ARM940T
113 # define CPU_NAME cpu_arm940
116 # ifdef CONFIG_CPU_ARM946E
121 # define CPU_NAME cpu_arm946
124 # ifdef CONFIG_CPU_SA110
129 # define CPU_NAME cpu_sa110
132 # ifdef CONFIG_CPU_SA1100
137 # define CPU_NAME cpu_sa1100
140 # ifdef CONFIG_CPU_ARM1020
145 # define CPU_NAME cpu_arm1020
148 # ifdef CONFIG_CPU_ARM1020E
153 # define CPU_NAME cpu_arm1020e
156 # ifdef CONFIG_CPU_ARM1022
161 # define CPU_NAME cpu_arm1022
164 # ifdef CONFIG_CPU_ARM1026
169 # define CPU_NAME cpu_arm1026
172 # ifdef CONFIG_CPU_XSCALE
177 # define CPU_NAME cpu_xscale
180 # ifdef CONFIG_CPU_XSC3
185 # define CPU_NAME cpu_xsc3
188 # ifdef CONFIG_CPU_V6
193 # define CPU_NAME cpu_v6
196 # ifdef CONFIG_CPU_V7
201 # define CPU_NAME cpu_v7
209 #include "asm/cpu-single.h"
211 #include "asm/cpu-multi32.h"
214 #include <asm/memory.h>
218 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
220 #define cpu_get_pgd() \
223 __asm__("mrc p15, 0, %0, c2, c0, 0" \
224 : "=r" (pg) : : "cc"); \
226 (pgd_t *)phys_to_virt(pg); \
231 #endif /* __ASSEMBLY__ */
232 #endif /* __KERNEL__ */
233 #endif /* __ASM_PROCFNS_H */