Blame view
arch/arm/mm/proc-arm9tdmi.S
2.3 KB
43f5f0146 [ARM] nommu: add ... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
/* * linux/arch/arm/mm/proc-arm9tdmi.S: utility functions for ARM9TDMI * * Copyright (C) 2003-2006 Hyok S. Choi <hyok.choi@samsung.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> |
5ec9407dd [ARM] Don't inclu... |
15 |
#include <asm/hwcap.h> |
43f5f0146 [ARM] nommu: add ... |
16 17 |
#include <asm/pgtable-hwdef.h> #include <asm/pgtable.h> |
43f5f0146 [ARM] nommu: add ... |
18 |
#include <asm/ptrace.h> |
b4a19f03c ARM: mm: proc-arm... |
19 |
#include "proc-macros.S" |
43f5f0146 [ARM] nommu: add ... |
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
.text /* * cpu_arm9tdmi_proc_init() * cpu_arm9tdmi_do_idle() * cpu_arm9tdmi_dcache_clean_area() * cpu_arm9tdmi_switch_mm() * * These are not required. */ ENTRY(cpu_arm9tdmi_proc_init) ENTRY(cpu_arm9tdmi_do_idle) ENTRY(cpu_arm9tdmi_dcache_clean_area) ENTRY(cpu_arm9tdmi_switch_mm) mov pc, lr /* * cpu_arm9tdmi_proc_fin() */ ENTRY(cpu_arm9tdmi_proc_fin) |
43f5f0146 [ARM] nommu: add ... |
39 40 41 42 43 44 45 |
mov pc, lr /* * Function: cpu_arm9tdmi_reset(loc) * Params : loc(r0) address to jump to * Purpose : Sets up everything for a reset and jump to the location for soft reset. */ |
1a4baafa7 ARM: proc-*.S: pl... |
46 |
.pushsection .idmap.text, "ax" |
43f5f0146 [ARM] nommu: add ... |
47 48 |
ENTRY(cpu_arm9tdmi_reset) mov pc, r0 |
1a4baafa7 ARM: proc-*.S: pl... |
49 50 |
ENDPROC(cpu_arm9tdmi_reset) .popsection |
43f5f0146 [ARM] nommu: add ... |
51 |
|
5085f3ff4 ARM: hotplug cpu:... |
52 |
__CPUINIT |
43f5f0146 [ARM] nommu: add ... |
53 54 55 56 57 58 59 |
.type __arm9tdmi_setup, #function __arm9tdmi_setup: mov pc, lr .size __arm9tdmi_setup, . - __arm9tdmi_setup __INITDATA |
b4a19f03c ARM: mm: proc-arm... |
60 61 |
@ define struct processor (see <asm/proc-fns.h> and proc-macros.S) define_processor_functions arm9tdmi, dabort=nommu_early_abort, pabort=legacy_pabort, nommu=1 |
43f5f0146 [ARM] nommu: add ... |
62 63 |
.section ".rodata" |
b4a19f03c ARM: mm: proc-arm... |
64 65 66 67 |
string cpu_arch_name, "armv4t" string cpu_elf_name, "v4" string cpu_arm9tdmi_name, "ARM9TDMI" string cpu_p2001_name, "P2001" |
43f5f0146 [ARM] nommu: add ... |
68 69 70 71 |
.align .section ".proc.info.init", #alloc, #execinstr |
b4a19f03c ARM: mm: proc-arm... |
72 73 74 75 76 77 78 |
.macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req .type __ ame\()_proc_info, #object __ ame\()_proc_info: .long \cpu_val .long \cpu_mask |
43f5f0146 [ARM] nommu: add ... |
79 80 81 82 83 84 |
.long 0 .long 0 b __arm9tdmi_setup .long cpu_arch_name .long cpu_elf_name .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT |
b4a19f03c ARM: mm: proc-arm... |
85 |
.long \cpu_name |
43f5f0146 [ARM] nommu: add ... |
86 87 88 89 |
.long arm9tdmi_processor_functions .long 0 .long 0 .long v4_cache_fns |
b4a19f03c ARM: mm: proc-arm... |
90 91 92 93 |
.size __ ame\()_proc_info, . - __ ame\()_proc_info .endm |
43f5f0146 [ARM] nommu: add ... |
94 |
|
b4a19f03c ARM: mm: proc-arm... |
95 96 |
arm9tdmi_proc_info arm9tdmi, 0x41009900, 0xfff8ff00, cpu_arm9tdmi_name arm9tdmi_proc_info p2001, 0x41029000, 0xffffffff, cpu_p2001_name |