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
16 #include <linux/config.h>
19 * Work out if we need multiple CPU support
25 * CPU_NAME - the prefix for CPU related functions
29 # ifdef CONFIG_CPU_ARM610
34 # define CPU_NAME cpu_arm6
37 # ifdef CONFIG_CPU_ARM710
42 # define CPU_NAME cpu_arm7
45 # ifdef CONFIG_CPU_ARM720T
50 # define CPU_NAME cpu_arm720
53 # ifdef CONFIG_CPU_ARM920T
58 # define CPU_NAME cpu_arm920
61 # ifdef CONFIG_CPU_ARM922T
66 # define CPU_NAME cpu_arm922
69 # ifdef CONFIG_CPU_ARM925T
74 # define CPU_NAME cpu_arm925
77 # ifdef CONFIG_CPU_ARM926T
82 # define CPU_NAME cpu_arm926
85 # ifdef CONFIG_CPU_SA110
90 # define CPU_NAME cpu_sa110
93 # ifdef CONFIG_CPU_SA1100
98 # define CPU_NAME cpu_sa1100
101 # ifdef CONFIG_CPU_ARM1020
106 # define CPU_NAME cpu_arm1020
109 # ifdef CONFIG_CPU_ARM1020E
114 # define CPU_NAME cpu_arm1020e
117 # ifdef CONFIG_CPU_ARM1022
122 # define CPU_NAME cpu_arm1022
125 # ifdef CONFIG_CPU_ARM1026
130 # define CPU_NAME cpu_arm1026
133 # ifdef CONFIG_CPU_XSCALE
138 # define CPU_NAME cpu_xscale
141 # ifdef CONFIG_CPU_XSC3
146 # define CPU_NAME cpu_xsc3
149 # ifdef CONFIG_CPU_V6
154 # define CPU_NAME cpu_v6
162 #include "asm/cpu-single.h"
164 #include "asm/cpu-multi32.h"
167 #include <asm/memory.h>
169 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
171 #define cpu_get_pgd() \
174 __asm__("mrc p15, 0, %0, c2, c0, 0" \
175 : "=r" (pg) : : "cc"); \
177 (pgd_t *)phys_to_virt(pg); \
180 #endif /* __ASSEMBLY__ */
181 #endif /* __KERNEL__ */
182 #endif /* __ASM_PROCFNS_H */