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_ARM920T
65 # define CPU_NAME cpu_arm920
68 # ifdef CONFIG_CPU_ARM922T
73 # define CPU_NAME cpu_arm922
76 # ifdef CONFIG_CPU_ARM925T
81 # define CPU_NAME cpu_arm925
84 # ifdef CONFIG_CPU_ARM926T
89 # define CPU_NAME cpu_arm926
92 # ifdef CONFIG_CPU_SA110
97 # define CPU_NAME cpu_sa110
100 # ifdef CONFIG_CPU_SA1100
105 # define CPU_NAME cpu_sa1100
108 # ifdef CONFIG_CPU_ARM1020
113 # define CPU_NAME cpu_arm1020
116 # ifdef CONFIG_CPU_ARM1020E
121 # define CPU_NAME cpu_arm1020e
124 # ifdef CONFIG_CPU_ARM1022
129 # define CPU_NAME cpu_arm1022
132 # ifdef CONFIG_CPU_ARM1026
137 # define CPU_NAME cpu_arm1026
140 # ifdef CONFIG_CPU_XSCALE
145 # define CPU_NAME cpu_xscale
148 # ifdef CONFIG_CPU_XSC3
153 # define CPU_NAME cpu_xsc3
156 # ifdef CONFIG_CPU_V6
161 # define CPU_NAME cpu_v6
169 #include "asm/cpu-single.h"
171 #include "asm/cpu-multi32.h"
174 #include <asm/memory.h>
178 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
180 #define cpu_get_pgd() \
183 __asm__("mrc p15, 0, %0, c2, c0, 0" \
184 : "=r" (pg) : : "cc"); \
186 (pgd_t *)phys_to_virt(pg); \
191 #endif /* __ASSEMBLY__ */
192 #endif /* __KERNEL__ */
193 #endif /* __ASM_PROCFNS_H */