0001
0002
0003
0004
0005
0006
0007 #include <linux/linkage.h>
0008 #include <linux/init.h>
0009 #include <linux/pgtable.h>
0010 #include <asm/assembler.h>
0011 #include <asm/asm-offsets.h>
0012 #include <asm/hwcap.h>
0013 #include <asm/pgtable-hwdef.h>
0014 #include <asm/ptrace.h>
0015
0016 #include "proc-macros.S"
0017
0018 .text
0019
0020
0021
0022
0023
0024
0025
0026
0027 ENTRY(cpu_arm9tdmi_proc_init)
0028 ENTRY(cpu_arm9tdmi_do_idle)
0029 ENTRY(cpu_arm9tdmi_dcache_clean_area)
0030 ENTRY(cpu_arm9tdmi_switch_mm)
0031 ret lr
0032
0033
0034
0035
0036 ENTRY(cpu_arm9tdmi_proc_fin)
0037 ret lr
0038
0039
0040
0041
0042
0043
0044 .pushsection .idmap.text, "ax"
0045 ENTRY(cpu_arm9tdmi_reset)
0046 ret r0
0047 ENDPROC(cpu_arm9tdmi_reset)
0048 .popsection
0049
0050 .type __arm9tdmi_setup, #function
0051 __arm9tdmi_setup:
0052 ret lr
0053 .size __arm9tdmi_setup, . - __arm9tdmi_setup
0054
0055 __INITDATA
0056
0057 @ define struct processor (see <asm/proc-fns.h> and proc-macros.S)
0058 define_processor_functions arm9tdmi, dabort=nommu_early_abort, pabort=legacy_pabort, nommu=1
0059
0060 .section ".rodata"
0061
0062 string cpu_arch_name, "armv4t"
0063 string cpu_elf_name, "v4"
0064 string cpu_arm9tdmi_name, "ARM9TDMI"
0065 string cpu_p2001_name, "P2001"
0066
0067 .align
0068
0069 .section ".proc.info.init", "a"
0070
0071 .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req
0072 .type __\name\()_proc_info, #object
0073 __\name\()_proc_info:
0074 .long \cpu_val
0075 .long \cpu_mask
0076 .long 0
0077 .long 0
0078 initfn __arm9tdmi_setup, __\name\()_proc_info
0079 .long cpu_arch_name
0080 .long cpu_elf_name
0081 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
0082 .long \cpu_name
0083 .long arm9tdmi_processor_functions
0084 .long 0
0085 .long 0
0086 .long v4_cache_fns
0087 .size __\name\()_proc_info, . - __\name\()_proc_info
0088 .endm
0089
0090 arm9tdmi_proc_info arm9tdmi, 0x41009900, 0xfff8ff00, cpu_arm9tdmi_name
0091 arm9tdmi_proc_info p2001, 0x41029000, 0xffffffff, cpu_p2001_name