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_ARM710
41 # define CPU_NAME cpu_arm7
44 # ifdef CONFIG_CPU_ARM720T
49 # define CPU_NAME cpu_arm720
52 # ifdef CONFIG_CPU_ARM920T
57 # define CPU_NAME cpu_arm920
60 # ifdef CONFIG_CPU_ARM922T
65 # define CPU_NAME cpu_arm922
68 # ifdef CONFIG_CPU_ARM925T
73 # define CPU_NAME cpu_arm925
76 # ifdef CONFIG_CPU_ARM926T
81 # define CPU_NAME cpu_arm926
84 # ifdef CONFIG_CPU_SA110
89 # define CPU_NAME cpu_sa110
92 # ifdef CONFIG_CPU_SA1100
97 # define CPU_NAME cpu_sa1100
100 # ifdef CONFIG_CPU_ARM1020
105 # define CPU_NAME cpu_arm1020
108 # ifdef CONFIG_CPU_ARM1020E
113 # define CPU_NAME cpu_arm1020e
116 # ifdef CONFIG_CPU_ARM1022
121 # define CPU_NAME cpu_arm1022
124 # ifdef CONFIG_CPU_ARM1026
129 # define CPU_NAME cpu_arm1026
132 # ifdef CONFIG_CPU_XSCALE
137 # define CPU_NAME cpu_xscale
140 # ifdef CONFIG_CPU_XSC3
145 # define CPU_NAME cpu_xsc3
148 # ifdef CONFIG_CPU_V6
153 # define CPU_NAME cpu_v6
161 #include "asm/cpu-single.h"
163 #include "asm/cpu-multi32.h"
166 #include <asm/memory.h>
168 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
170 #define cpu_get_pgd() \
173 __asm__("mrc p15, 0, %0, c2, c0, 0" \
174 : "=r" (pg) : : "cc"); \
176 (pgd_t *)phys_to_virt(pg); \
179 #endif /* __ASSEMBLY__ */
180 #endif /* __KERNEL__ */
181 #endif /* __ASM_PROCFNS_H */