2 * linux/arch/arm/mm/proc-arm9tdmi.S: utility functions for ARM9TDMI
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_arm9tdmi_proc_init()
23 * cpu_arm9tdmi_do_idle()
24 * cpu_arm9tdmi_dcache_clean_area()
25 * cpu_arm9tdmi_switch_mm()
27 * These are not required.
29 ENTRY(cpu_arm9tdmi_proc_init)
30 ENTRY(cpu_arm9tdmi_do_idle)
31 ENTRY(cpu_arm9tdmi_dcache_clean_area)
32 ENTRY(cpu_arm9tdmi_switch_mm)
36 * cpu_arm9tdmi_proc_fin()
38 ENTRY(cpu_arm9tdmi_proc_fin)
39 mov r0, #PSR_F_BIT | PSR_I_BIT | SVC_MODE
44 * Function: cpu_arm9tdmi_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_arm9tdmi_reset)
53 .type __arm9tdmi_setup, #function
56 .size __arm9tdmi_setup, . - __arm9tdmi_setup
61 * Purpose : Function pointers used to access above functions - all calls
64 .type arm9tdmi_processor_functions, #object
65 ENTRY(arm9tdmi_processor_functions)
66 .word nommu_early_abort
67 .word cpu_arm9tdmi_proc_init
68 .word cpu_arm9tdmi_proc_fin
69 .word cpu_arm9tdmi_reset
70 .word cpu_arm9tdmi_do_idle
71 .word cpu_arm9tdmi_dcache_clean_area
72 .word cpu_arm9tdmi_switch_mm
73 .word 0 @ cpu_*_set_pte
74 .size arm9tdmi_processor_functions, . - arm9tdmi_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_arm9tdmi_name, #object
91 .size cpu_arm9tdmi_name, . - cpu_arm9tdmi_name
93 .type cpu_p2001_name, #object
96 .size cpu_p2001_name, . - cpu_p2001_name
100 .section ".proc.info.init", #alloc, #execinstr
102 .type __arm9tdmi_proc_info, #object
103 __arm9tdmi_proc_info:
111 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
112 .long cpu_arm9tdmi_name
113 .long arm9tdmi_processor_functions
117 .size __arm9tdmi_proc_info, . - __arm9dmi_proc_info
119 .type __p2001_proc_info, #object
128 .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT
130 .long arm9tdmi_processor_functions
134 .size __p2001_proc_info, . - __p2001_proc_info