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>
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)
39 mov r0, #PSR_F_BIT | PSR_I_BIT | SVC_MODE
44 * Function: cpu_arm7tdmi_reset(loc)
45 * Params : loc(r0) address to jump to
46 * Purpose : Sets up everything for a reset and jump to the location for soft reset.
48 ENTRY(cpu_arm7tdmi_reset)
53 .type __arm7tdmi_setup, #function
56 .size __arm7tdmi_setup, . - __arm7tdmi_setup
61 * Purpose : Function pointers used to access above functions - all calls
64 .type arm7tdmi_processor_functions, #object
65 ENTRY(arm7tdmi_processor_functions)
67 .word cpu_arm7tdmi_proc_init
68 .word cpu_arm7tdmi_proc_fin
69 .word cpu_arm7tdmi_reset
70 .word cpu_arm7tdmi_do_idle
71 .word cpu_arm7tdmi_dcache_clean_area
72 .word cpu_arm7tdmi_switch_mm
73 .word 0 @ cpu_*_set_pte
74 .size arm7tdmi_processor_functions, . - arm7tdmi_processor_functions
78 .type cpu_arch_name, #object
81 .size cpu_arch_name, . - cpu_arch_name
83 .type cpu_elf_name, #object
86 .size cpu_elf_name, . - cpu_elf_name
88 .type cpu_arm7tdmi_name, #object
91 .size cpu_arm7tdmi_name, . - cpu_arm7tdmi_name
93 .type cpu_triscenda7_name, #object
96 .size cpu_triscenda7_name, . - cpu_triscenda7_name
98 .type cpu_at91_name, #object
100 .asciz "Atmel-AT91M40xxx"
101 .size cpu_at91_name, . - cpu_at91_name
103 .type cpu_s3c3410_name, #object
105 .asciz "Samsung-S3C3410"
106 .size cpu_s3c3410_name, . - cpu_s3c3410_name
108 .type cpu_s3c44b0x_name, #object
110 .asciz "Samsung-S3C44B0x"
111 .size cpu_s3c44b0x_name, . - cpu_s3c44b0x_name
113 .type cpu_s3c4510b, #object
115 .asciz "Samsung-S3C4510B"
116 .size cpu_s3c4510b_name, . - cpu_s3c4510b_name
118 .type cpu_s3c4530_name, #object
120 .asciz "Samsung-S3C4530"
121 .size cpu_s3c4530_name, . - cpu_s3c4530_name
123 .type cpu_netarm_name, #object
126 .size cpu_netarm_name, . - cpu_netarm_name
130 .section ".proc.info.init", #alloc, #execinstr
132 .type __arm7tdmi_proc_info, #object
133 __arm7tdmi_proc_info:
141 .long HWCAP_SWP | HWCAP_26BIT
142 .long cpu_arm7tdmi_name
143 .long arm7tdmi_processor_functions
147 .size __arm7tdmi_proc_info, . - __arm7dmi_proc_info
149 .type __triscenda7_proc_info, #object
150 __triscenda7_proc_info:
158 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
159 .long cpu_triscenda7_name
160 .long arm7tdmi_processor_functions
164 .size __triscenda7_proc_info, . - __triscenda7_proc_info
166 .type __at91_proc_info, #object
175 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
177 .long arm7tdmi_processor_functions
181 .size __at91_proc_info, . - __at91_proc_info
183 .type __s3c4510b_proc_info, #object
184 __s3c4510b_proc_info:
192 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
193 .long cpu_s3c4510b_name
194 .long arm7tdmi_processor_functions
198 .size __s3c4510b_proc_info, . - __s3c4510b_proc_info
200 .type __s3c4530_proc_info, #object
209 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
210 .long cpu_s3c4530_name
211 .long arm7tdmi_processor_functions
215 .size __s3c4530_proc_info, . - __s3c4530_proc_info
217 .type __s3c3410_proc_info, #object
226 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
227 .long cpu_s3c3410_name
228 .long arm7tdmi_processor_functions
232 .size __s3c3410_proc_info, . - __s3c3410_proc_info
234 .type __s3c44b0x_proc_info, #object
235 __s3c44b0x_proc_info:
243 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
244 .long cpu_s3c44b0x_name
245 .long arm7tdmi_processor_functions
249 .size __s3c44b0x_proc_info, . - __s3c44b0x_proc_info