diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 08:50:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 08:50:37 -0400 |
commit | 40ef8cbc6d360e564573eb19582249c35d8ba330 (patch) | |
tree | abba70b7da8bef93a87431691dc8df79eb4425d5 /arch/powerpc/kernel/ppc_ksyms.c | |
parent | bc6f8a4b199156897f6eb5b70bf5c1a4773f4e2b (diff) |
powerpc: Get 64-bit configs to compile with ARCH=powerpc
This is a bunch of mostly small fixes that are needed to get
ARCH=powerpc to compile for 64-bit. This adds setup_64.c from
arch/ppc64/kernel/setup.c and locks.c from arch/ppc64/lib/locks.c.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/ppc_ksyms.c')
-rw-r--r-- | arch/powerpc/kernel/ppc_ksyms.c | 101 |
1 files changed, 40 insertions, 61 deletions
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index 91a562e3257b..010554e5fe48 100644 --- a/arch/powerpc/kernel/ppc_ksyms.c +++ b/arch/powerpc/kernel/ppc_ksyms.c | |||
@@ -51,6 +51,7 @@ | |||
51 | #include <asm/commproc.h> | 51 | #include <asm/commproc.h> |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #ifdef CONFIG_PPC32 | ||
54 | extern void transfer_to_handler(void); | 55 | extern void transfer_to_handler(void); |
55 | extern void do_IRQ(struct pt_regs *regs); | 56 | extern void do_IRQ(struct pt_regs *regs); |
56 | extern void machine_check_exception(struct pt_regs *regs); | 57 | extern void machine_check_exception(struct pt_regs *regs); |
@@ -61,14 +62,12 @@ extern int do_signal(sigset_t *, struct pt_regs *); | |||
61 | extern int pmac_newworld; | 62 | extern int pmac_newworld; |
62 | extern int sys_sigreturn(struct pt_regs *regs); | 63 | extern int sys_sigreturn(struct pt_regs *regs); |
63 | 64 | ||
64 | long long __ashrdi3(long long, int); | ||
65 | long long __ashldi3(long long, int); | ||
66 | long long __lshrdi3(long long, int); | ||
67 | |||
68 | extern unsigned long mm_ptov (unsigned long paddr); | ||
69 | |||
70 | EXPORT_SYMBOL(clear_pages); | 65 | EXPORT_SYMBOL(clear_pages); |
71 | EXPORT_SYMBOL(clear_user_page); | 66 | EXPORT_SYMBOL(ISA_DMA_THRESHOLD); |
67 | EXPORT_SYMBOL(DMA_MODE_READ); | ||
68 | EXPORT_SYMBOL(DMA_MODE_WRITE); | ||
69 | EXPORT_SYMBOL(__div64_32); | ||
70 | |||
72 | EXPORT_SYMBOL(do_signal); | 71 | EXPORT_SYMBOL(do_signal); |
73 | EXPORT_SYMBOL(transfer_to_handler); | 72 | EXPORT_SYMBOL(transfer_to_handler); |
74 | EXPORT_SYMBOL(do_IRQ); | 73 | EXPORT_SYMBOL(do_IRQ); |
@@ -77,12 +76,8 @@ EXPORT_SYMBOL(alignment_exception); | |||
77 | EXPORT_SYMBOL(program_check_exception); | 76 | EXPORT_SYMBOL(program_check_exception); |
78 | EXPORT_SYMBOL(single_step_exception); | 77 | EXPORT_SYMBOL(single_step_exception); |
79 | EXPORT_SYMBOL(sys_sigreturn); | 78 | EXPORT_SYMBOL(sys_sigreturn); |
80 | EXPORT_SYMBOL(ppc_n_lost_interrupts); | 79 | #endif |
81 | EXPORT_SYMBOL(ppc_lost_interrupts); | ||
82 | 80 | ||
83 | EXPORT_SYMBOL(ISA_DMA_THRESHOLD); | ||
84 | EXPORT_SYMBOL(DMA_MODE_READ); | ||
85 | EXPORT_SYMBOL(DMA_MODE_WRITE); | ||
86 | #if defined(CONFIG_PPC_PREP) | 81 | #if defined(CONFIG_PPC_PREP) |
87 | EXPORT_SYMBOL(_prep_type); | 82 | EXPORT_SYMBOL(_prep_type); |
88 | EXPORT_SYMBOL(ucSystemType); | 83 | EXPORT_SYMBOL(ucSystemType); |
@@ -110,7 +105,6 @@ EXPORT_SYMBOL(strnlen); | |||
110 | EXPORT_SYMBOL(strcmp); | 105 | EXPORT_SYMBOL(strcmp); |
111 | EXPORT_SYMBOL(strncmp); | 106 | EXPORT_SYMBOL(strncmp); |
112 | EXPORT_SYMBOL(strcasecmp); | 107 | EXPORT_SYMBOL(strcasecmp); |
113 | EXPORT_SYMBOL(__div64_32); | ||
114 | 108 | ||
115 | EXPORT_SYMBOL(csum_partial); | 109 | EXPORT_SYMBOL(csum_partial); |
116 | EXPORT_SYMBOL(csum_partial_copy_generic); | 110 | EXPORT_SYMBOL(csum_partial_copy_generic); |
@@ -132,21 +126,21 @@ EXPORT_SYMBOL(_insw_ns); | |||
132 | EXPORT_SYMBOL(_outsw_ns); | 126 | EXPORT_SYMBOL(_outsw_ns); |
133 | EXPORT_SYMBOL(_insl_ns); | 127 | EXPORT_SYMBOL(_insl_ns); |
134 | EXPORT_SYMBOL(_outsl_ns); | 128 | EXPORT_SYMBOL(_outsl_ns); |
135 | EXPORT_SYMBOL(iopa); | ||
136 | EXPORT_SYMBOL(mm_ptov); | ||
137 | EXPORT_SYMBOL(ioremap); | 129 | EXPORT_SYMBOL(ioremap); |
138 | #ifdef CONFIG_44x | 130 | #ifdef CONFIG_44x |
139 | EXPORT_SYMBOL(ioremap64); | 131 | EXPORT_SYMBOL(ioremap64); |
140 | #endif | 132 | #endif |
141 | EXPORT_SYMBOL(__ioremap); | 133 | EXPORT_SYMBOL(__ioremap); |
142 | EXPORT_SYMBOL(iounmap); | 134 | EXPORT_SYMBOL(iounmap); |
135 | #ifdef CONFIG_PPC32 | ||
143 | EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ | 136 | EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ |
137 | #endif | ||
144 | 138 | ||
145 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) | 139 | #if defined(CONFIG_PPC32) && (defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)) |
146 | EXPORT_SYMBOL(ppc_ide_md); | 140 | EXPORT_SYMBOL(ppc_ide_md); |
147 | #endif | 141 | #endif |
148 | 142 | ||
149 | #ifdef CONFIG_PCI | 143 | #if defined(CONFIG_PCI) && defined(CONFIG_PPC32) |
150 | EXPORT_SYMBOL(isa_io_base); | 144 | EXPORT_SYMBOL(isa_io_base); |
151 | EXPORT_SYMBOL(isa_mem_base); | 145 | EXPORT_SYMBOL(isa_mem_base); |
152 | EXPORT_SYMBOL(pci_dram_offset); | 146 | EXPORT_SYMBOL(pci_dram_offset); |
@@ -168,31 +162,31 @@ EXPORT_SYMBOL(flush_dcache_all); | |||
168 | EXPORT_SYMBOL(start_thread); | 162 | EXPORT_SYMBOL(start_thread); |
169 | EXPORT_SYMBOL(kernel_thread); | 163 | EXPORT_SYMBOL(kernel_thread); |
170 | 164 | ||
171 | EXPORT_SYMBOL(flush_instruction_cache); | ||
172 | EXPORT_SYMBOL(giveup_fpu); | 165 | EXPORT_SYMBOL(giveup_fpu); |
166 | #ifdef CONFIG_ALTIVEC | ||
167 | EXPORT_SYMBOL(giveup_altivec); | ||
168 | #endif /* CONFIG_ALTIVEC */ | ||
169 | #ifdef CONFIG_SPE | ||
170 | EXPORT_SYMBOL(giveup_spe); | ||
171 | #endif /* CONFIG_SPE */ | ||
172 | |||
173 | #ifdef CONFIG_PPC64 | 173 | #ifdef CONFIG_PPC64 |
174 | EXPORT_SYMBOL(__flush_icache_range); | 174 | EXPORT_SYMBOL(__flush_icache_range); |
175 | #else | 175 | #else |
176 | EXPORT_SYMBOL(flush_instruction_cache); | ||
176 | EXPORT_SYMBOL(flush_icache_range); | 177 | EXPORT_SYMBOL(flush_icache_range); |
177 | #endif | ||
178 | EXPORT_SYMBOL(flush_dcache_range); | ||
179 | EXPORT_SYMBOL(flush_icache_user_range); | ||
180 | EXPORT_SYMBOL(flush_dcache_page); | ||
181 | EXPORT_SYMBOL(flush_tlb_kernel_range); | 178 | EXPORT_SYMBOL(flush_tlb_kernel_range); |
182 | EXPORT_SYMBOL(flush_tlb_page); | 179 | EXPORT_SYMBOL(flush_tlb_page); |
183 | EXPORT_SYMBOL(_tlbie); | 180 | EXPORT_SYMBOL(_tlbie); |
184 | #ifdef CONFIG_ALTIVEC | 181 | #endif |
185 | EXPORT_SYMBOL(giveup_altivec); | 182 | EXPORT_SYMBOL(flush_dcache_range); |
186 | #endif /* CONFIG_ALTIVEC */ | 183 | |
187 | #ifdef CONFIG_SPE | ||
188 | EXPORT_SYMBOL(giveup_spe); | ||
189 | #endif /* CONFIG_SPE */ | ||
190 | #ifdef CONFIG_SMP | 184 | #ifdef CONFIG_SMP |
191 | EXPORT_SYMBOL(smp_call_function); | 185 | EXPORT_SYMBOL(smp_call_function); |
186 | #ifdef CONFIG_PPC32 | ||
192 | EXPORT_SYMBOL(smp_hw_index); | 187 | EXPORT_SYMBOL(smp_hw_index); |
193 | #endif | 188 | #endif |
194 | 189 | #endif | |
195 | EXPORT_SYMBOL(ppc_md); | ||
196 | 190 | ||
197 | #ifdef CONFIG_ADB | 191 | #ifdef CONFIG_ADB |
198 | EXPORT_SYMBOL(adb_request); | 192 | EXPORT_SYMBOL(adb_request); |
@@ -205,25 +199,27 @@ EXPORT_SYMBOL(adb_try_handler_change); | |||
205 | EXPORT_SYMBOL(cuda_request); | 199 | EXPORT_SYMBOL(cuda_request); |
206 | EXPORT_SYMBOL(cuda_poll); | 200 | EXPORT_SYMBOL(cuda_poll); |
207 | #endif /* CONFIG_ADB_CUDA */ | 201 | #endif /* CONFIG_ADB_CUDA */ |
208 | #ifdef CONFIG_PPC_MULTIPLATFORM | 202 | #if defined(CONFIG_PPC_MULTIPLATFORM) && defined(CONFIG_PPC32) |
209 | EXPORT_SYMBOL(_machine); | 203 | EXPORT_SYMBOL(_machine); |
210 | #endif | 204 | #endif |
211 | #ifdef CONFIG_PPC_PMAC | 205 | #ifdef CONFIG_PPC_PMAC |
212 | EXPORT_SYMBOL(sys_ctrler); | 206 | EXPORT_SYMBOL(sys_ctrler); |
213 | EXPORT_SYMBOL(pmac_newworld); | ||
214 | #endif | 207 | #endif |
215 | #ifdef CONFIG_VT | 208 | #ifdef CONFIG_VT |
216 | EXPORT_SYMBOL(kd_mksound); | 209 | EXPORT_SYMBOL(kd_mksound); |
217 | #endif | 210 | #endif |
218 | EXPORT_SYMBOL(to_tm); | 211 | EXPORT_SYMBOL(to_tm); |
219 | 212 | ||
220 | EXPORT_SYMBOL(pm_power_off); | 213 | #ifdef CONFIG_PPC32 |
221 | 214 | long long __ashrdi3(long long, int); | |
215 | long long __ashldi3(long long, int); | ||
216 | long long __lshrdi3(long long, int); | ||
222 | EXPORT_SYMBOL(__ashrdi3); | 217 | EXPORT_SYMBOL(__ashrdi3); |
223 | EXPORT_SYMBOL(__ashldi3); | 218 | EXPORT_SYMBOL(__ashldi3); |
224 | EXPORT_SYMBOL(__lshrdi3); | 219 | EXPORT_SYMBOL(__lshrdi3); |
220 | #endif | ||
221 | |||
225 | EXPORT_SYMBOL(memcpy); | 222 | EXPORT_SYMBOL(memcpy); |
226 | EXPORT_SYMBOL(cacheable_memcpy); | ||
227 | EXPORT_SYMBOL(memset); | 223 | EXPORT_SYMBOL(memset); |
228 | EXPORT_SYMBOL(memmove); | 224 | EXPORT_SYMBOL(memmove); |
229 | EXPORT_SYMBOL(memscan); | 225 | EXPORT_SYMBOL(memscan); |
@@ -234,17 +230,14 @@ EXPORT_SYMBOL(memchr); | |||
234 | EXPORT_SYMBOL(screen_info); | 230 | EXPORT_SYMBOL(screen_info); |
235 | #endif | 231 | #endif |
236 | 232 | ||
233 | #ifdef CONFIG_PPC32 | ||
234 | EXPORT_SYMBOL(pm_power_off); | ||
237 | EXPORT_SYMBOL(__delay); | 235 | EXPORT_SYMBOL(__delay); |
238 | EXPORT_SYMBOL(timer_interrupt); | 236 | EXPORT_SYMBOL(timer_interrupt); |
239 | EXPORT_SYMBOL(irq_desc); | 237 | EXPORT_SYMBOL(irq_desc); |
240 | EXPORT_SYMBOL(tb_ticks_per_jiffy); | 238 | EXPORT_SYMBOL(tb_ticks_per_jiffy); |
241 | EXPORT_SYMBOL(get_wchan); | ||
242 | EXPORT_SYMBOL(console_drivers); | 239 | EXPORT_SYMBOL(console_drivers); |
243 | 240 | EXPORT_SYMBOL(cacheable_memcpy); | |
244 | #ifdef CONFIG_PPC_ISERIES | ||
245 | EXPORT_SYMBOL(local_irq_disable); | ||
246 | EXPORT_SYMBOL(local_irq_enable); | ||
247 | EXPORT_SYMBOL(local_get_flags); | ||
248 | #endif | 241 | #endif |
249 | 242 | ||
250 | #ifdef CONFIG_XMON | 243 | #ifdef CONFIG_XMON |
@@ -255,22 +248,6 @@ EXPORT_SYMBOL(__up); | |||
255 | EXPORT_SYMBOL(__down); | 248 | EXPORT_SYMBOL(__down); |
256 | EXPORT_SYMBOL(__down_interruptible); | 249 | EXPORT_SYMBOL(__down_interruptible); |
257 | 250 | ||
258 | #if defined(CONFIG_KGDB) || defined(CONFIG_XMON) | ||
259 | extern void (*debugger)(struct pt_regs *regs); | ||
260 | extern int (*debugger_bpt)(struct pt_regs *regs); | ||
261 | extern int (*debugger_sstep)(struct pt_regs *regs); | ||
262 | extern int (*debugger_iabr_match)(struct pt_regs *regs); | ||
263 | extern int (*debugger_dabr_match)(struct pt_regs *regs); | ||
264 | extern void (*debugger_fault_handler)(struct pt_regs *regs); | ||
265 | |||
266 | EXPORT_SYMBOL(debugger); | ||
267 | EXPORT_SYMBOL(debugger_bpt); | ||
268 | EXPORT_SYMBOL(debugger_sstep); | ||
269 | EXPORT_SYMBOL(debugger_iabr_match); | ||
270 | EXPORT_SYMBOL(debugger_dabr_match); | ||
271 | EXPORT_SYMBOL(debugger_fault_handler); | ||
272 | #endif | ||
273 | |||
274 | #ifdef CONFIG_8xx | 251 | #ifdef CONFIG_8xx |
275 | EXPORT_SYMBOL(cpm_install_handler); | 252 | EXPORT_SYMBOL(cpm_install_handler); |
276 | EXPORT_SYMBOL(cpm_free_handler); | 253 | EXPORT_SYMBOL(cpm_free_handler); |
@@ -280,22 +257,24 @@ EXPORT_SYMBOL(cpm_free_handler); | |||
280 | EXPORT_SYMBOL(__res); | 257 | EXPORT_SYMBOL(__res); |
281 | #endif | 258 | #endif |
282 | 259 | ||
260 | #ifdef CONFIG_PPC32 | ||
283 | EXPORT_SYMBOL(next_mmu_context); | 261 | EXPORT_SYMBOL(next_mmu_context); |
284 | EXPORT_SYMBOL(set_context); | 262 | EXPORT_SYMBOL(set_context); |
285 | EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */ | ||
286 | EXPORT_SYMBOL(disarm_decr); | 263 | EXPORT_SYMBOL(disarm_decr); |
287 | #ifdef CONFIG_PPC_STD_MMU | 264 | #endif |
265 | |||
266 | #ifdef CONFIG_PPC_STD_MMU_32 | ||
288 | extern long mol_trampoline; | 267 | extern long mol_trampoline; |
289 | EXPORT_SYMBOL(mol_trampoline); /* For MOL */ | 268 | EXPORT_SYMBOL(mol_trampoline); /* For MOL */ |
290 | EXPORT_SYMBOL(flush_hash_pages); /* For MOL */ | 269 | EXPORT_SYMBOL(flush_hash_pages); /* For MOL */ |
270 | EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */ | ||
291 | #ifdef CONFIG_SMP | 271 | #ifdef CONFIG_SMP |
292 | extern int mmu_hash_lock; | 272 | extern int mmu_hash_lock; |
293 | EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */ | 273 | EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */ |
294 | #endif /* CONFIG_SMP */ | 274 | #endif /* CONFIG_SMP */ |
295 | extern long *intercept_table; | 275 | extern long *intercept_table; |
296 | EXPORT_SYMBOL(intercept_table); | 276 | EXPORT_SYMBOL(intercept_table); |
297 | #endif /* CONFIG_PPC_STD_MMU */ | 277 | #endif /* CONFIG_PPC_STD_MMU_32 */ |
298 | EXPORT_SYMBOL(cur_cpu_spec); | ||
299 | #ifdef CONFIG_PPC_PMAC | 278 | #ifdef CONFIG_PPC_PMAC |
300 | extern unsigned long agp_special_page; | 279 | extern unsigned long agp_special_page; |
301 | EXPORT_SYMBOL(agp_special_page); | 280 | EXPORT_SYMBOL(agp_special_page); |