2 * linux/arch/arm/mm/proc-arm7tdmi.S: utility functions for ARM7TDMI
4 * Copyright (C) 2003-2006 Hyok S. Choi <hyok.choi@samsung.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #include <linux/linkage.h>
12 #include <linux/init.h>
13 #include <asm/assembler.h>
14 #include <asm/asm-offsets.h>
15 #include <asm/hwcap.h>
16 #include <asm/pgtable-hwdef.h>
17 #include <asm/pgtable.h>
18 #include <asm/ptrace.h>
22 * cpu_arm7tdmi_proc_init()
23 * cpu_arm7tdmi_do_idle()
24 * cpu_arm7tdmi_dcache_clean_area()
25 * cpu_arm7tdmi_switch_mm()
27 * These are not required.
29 ENTRY(cpu_arm7tdmi_proc_init)
30 ENTRY(cpu_arm7tdmi_do_idle)
31 ENTRY(cpu_arm7tdmi_dcache_clean_area)
32 ENTRY(cpu_arm7tdmi_switch_mm)
36 * cpu_arm7tdmi_proc_fin()
38 ENTRY(cpu_arm7tdmi_proc_fin)
42 * Function: cpu_arm7tdmi_reset(loc)
43 * Params : loc(r0) address to jump to
44 * Purpose : Sets up everything for a reset and jump to the location for soft reset.
46 ENTRY(cpu_arm7tdmi_reset)
51 .type __arm7tdmi_setup, #function
54 .size __arm7tdmi_setup, . - __arm7tdmi_setup
59 * Purpose : Function pointers used to access above functions - all calls
62 .type arm7tdmi_processor_functions, #object
63 ENTRY(arm7tdmi_processor_functions)
66 .word cpu_arm7tdmi_proc_init
67 .word cpu_arm7tdmi_proc_fin
68 .word cpu_arm7tdmi_reset
69 .word cpu_arm7tdmi_do_idle
70 .word cpu_arm7tdmi_dcache_clean_area
71 .word cpu_arm7tdmi_switch_mm
72 .word 0 @ cpu_*_set_pte
76 .size arm7tdmi_processor_functions, . - arm7tdmi_processor_functions
80 .type cpu_arch_name, #object
83 .size cpu_arch_name, . - cpu_arch_name
85 .type cpu_elf_name, #object
88 .size cpu_elf_name, . - cpu_elf_name
90 .type cpu_arm7tdmi_name, #object
93 .size cpu_arm7tdmi_name, . - cpu_arm7tdmi_name
95 .type cpu_triscenda7_name, #object
98 .size cpu_triscenda7_name, . - cpu_triscenda7_name
100 .type cpu_at91_name, #object
102 .asciz "Atmel-AT91M40xxx"
103 .size cpu_at91_name, . - cpu_at91_name
105 .type cpu_s3c3410_name, #object
107 .asciz "Samsung-S3C3410"
108 .size cpu_s3c3410_name, . - cpu_s3c3410_name
110 .type cpu_s3c44b0x_name, #object
112 .asciz "Samsung-S3C44B0x"
113 .size cpu_s3c44b0x_name, . - cpu_s3c44b0x_name
115 .type cpu_s3c4510b, #object
117 .asciz "Samsung-S3C4510B"
118 .size cpu_s3c4510b_name, . - cpu_s3c4510b_name
120 .type cpu_s3c4530_name, #object
122 .asciz "Samsung-S3C4530"
123 .size cpu_s3c4530_name, . - cpu_s3c4530_name
125 .type cpu_netarm_name, #object
128 .size cpu_netarm_name, . - cpu_netarm_name
132 .section ".proc.info.init", #alloc, #execinstr
134 .type __arm7tdmi_proc_info, #object
135 __arm7tdmi_proc_info:
143 .long HWCAP_SWP | HWCAP_26BIT
144 .long cpu_arm7tdmi_name
145 .long arm7tdmi_processor_functions
149 .size __arm7tdmi_proc_info, . - __arm7dmi_proc_info
151 .type __triscenda7_proc_info, #object
152 __triscenda7_proc_info:
160 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
161 .long cpu_triscenda7_name
162 .long arm7tdmi_processor_functions
166 .size __triscenda7_proc_info, . - __triscenda7_proc_info
168 .type __at91_proc_info, #object
177 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
179 .long arm7tdmi_processor_functions
183 .size __at91_proc_info, . - __at91_proc_info
185 .type __s3c4510b_proc_info, #object
186 __s3c4510b_proc_info:
194 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
195 .long cpu_s3c4510b_name
196 .long arm7tdmi_processor_functions
200 .size __s3c4510b_proc_info, . - __s3c4510b_proc_info
202 .type __s3c4530_proc_info, #object
211 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
212 .long cpu_s3c4530_name
213 .long arm7tdmi_processor_functions
217 .size __s3c4530_proc_info, . - __s3c4530_proc_info
219 .type __s3c3410_proc_info, #object
228 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
229 .long cpu_s3c3410_name
230 .long arm7tdmi_processor_functions
234 .size __s3c3410_proc_info, . - __s3c3410_proc_info
236 .type __s3c44b0x_proc_info, #object
237 __s3c44b0x_proc_info:
245 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
246 .long cpu_s3c44b0x_name
247 .long arm7tdmi_processor_functions
251 .size __s3c44b0x_proc_info, . - __s3c44b0x_proc_info