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_V6
146 # define CPU_NAME cpu_v6
154 #include "asm/cpu-single.h"
156 #include "asm/cpu-multi32.h"
159 #include <asm/memory.h>
161 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
163 #define cpu_get_pgd() \
166 __asm__("mrc p15, 0, %0, c2, c0, 0" \
167 : "=r" (pg) : : "cc"); \
169 (pgd_t *)phys_to_virt(pg); \
172 #endif /* __ASSEMBLY__ */
173 #endif /* __KERNEL__ */
174 #endif /* __ASM_PROCFNS_H */