51
51
#include <asm/commproc.h>
52
52
#endif
53
53
54
+ #ifdef CONFIG_PPC32
54
55
extern void transfer_to_handler (void );
55
56
extern void do_IRQ (struct pt_regs * regs );
56
57
extern void machine_check_exception (struct pt_regs * regs );
@@ -61,14 +62,12 @@ extern int do_signal(sigset_t *, struct pt_regs *);
61
62
extern int pmac_newworld ;
62
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
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
71
EXPORT_SYMBOL (do_signal );
73
72
EXPORT_SYMBOL (transfer_to_handler );
74
73
EXPORT_SYMBOL (do_IRQ );
@@ -77,12 +76,8 @@ EXPORT_SYMBOL(alignment_exception);
77
76
EXPORT_SYMBOL (program_check_exception );
78
77
EXPORT_SYMBOL (single_step_exception );
79
78
EXPORT_SYMBOL (sys_sigreturn );
80
- EXPORT_SYMBOL (ppc_n_lost_interrupts );
81
- EXPORT_SYMBOL (ppc_lost_interrupts );
79
+ #endif
82
80
83
- EXPORT_SYMBOL (ISA_DMA_THRESHOLD );
84
- EXPORT_SYMBOL (DMA_MODE_READ );
85
- EXPORT_SYMBOL (DMA_MODE_WRITE );
86
81
#if defined(CONFIG_PPC_PREP )
87
82
EXPORT_SYMBOL (_prep_type );
88
83
EXPORT_SYMBOL (ucSystemType );
@@ -110,7 +105,6 @@ EXPORT_SYMBOL(strnlen);
110
105
EXPORT_SYMBOL (strcmp );
111
106
EXPORT_SYMBOL (strncmp );
112
107
EXPORT_SYMBOL (strcasecmp );
113
- EXPORT_SYMBOL (__div64_32 );
114
108
115
109
EXPORT_SYMBOL (csum_partial );
116
110
EXPORT_SYMBOL (csum_partial_copy_generic );
@@ -132,21 +126,21 @@ EXPORT_SYMBOL(_insw_ns);
132
126
EXPORT_SYMBOL (_outsw_ns );
133
127
EXPORT_SYMBOL (_insl_ns );
134
128
EXPORT_SYMBOL (_outsl_ns );
135
- EXPORT_SYMBOL (iopa );
136
- EXPORT_SYMBOL (mm_ptov );
137
129
EXPORT_SYMBOL (ioremap );
138
130
#ifdef CONFIG_44x
139
131
EXPORT_SYMBOL (ioremap64 );
140
132
#endif
141
133
EXPORT_SYMBOL (__ioremap );
142
134
EXPORT_SYMBOL (iounmap );
135
+ #ifdef CONFIG_PPC32
143
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
140
EXPORT_SYMBOL (ppc_ide_md );
147
141
#endif
148
142
149
- #ifdef CONFIG_PCI
143
+ #if defined( CONFIG_PCI ) && defined( CONFIG_PPC32 )
150
144
EXPORT_SYMBOL (isa_io_base );
151
145
EXPORT_SYMBOL (isa_mem_base );
152
146
EXPORT_SYMBOL (pci_dram_offset );
@@ -168,31 +162,31 @@ EXPORT_SYMBOL(flush_dcache_all);
168
162
EXPORT_SYMBOL (start_thread );
169
163
EXPORT_SYMBOL (kernel_thread );
170
164
171
- EXPORT_SYMBOL (flush_instruction_cache );
172
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
173
#ifdef CONFIG_PPC64
174
174
EXPORT_SYMBOL (__flush_icache_range );
175
175
#else
176
+ EXPORT_SYMBOL (flush_instruction_cache );
176
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
178
EXPORT_SYMBOL (flush_tlb_kernel_range );
182
179
EXPORT_SYMBOL (flush_tlb_page );
183
180
EXPORT_SYMBOL (_tlbie );
184
- #ifdef CONFIG_ALTIVEC
185
- EXPORT_SYMBOL (giveup_altivec );
186
- #endif /* CONFIG_ALTIVEC */
187
- #ifdef CONFIG_SPE
188
- EXPORT_SYMBOL (giveup_spe );
189
- #endif /* CONFIG_SPE */
181
+ #endif
182
+ EXPORT_SYMBOL (flush_dcache_range );
183
+
190
184
#ifdef CONFIG_SMP
191
185
EXPORT_SYMBOL (smp_call_function );
186
+ #ifdef CONFIG_PPC32
192
187
EXPORT_SYMBOL (smp_hw_index );
193
188
#endif
194
-
195
- EXPORT_SYMBOL (ppc_md );
189
+ #endif
196
190
197
191
#ifdef CONFIG_ADB
198
192
EXPORT_SYMBOL (adb_request );
@@ -205,25 +199,27 @@ EXPORT_SYMBOL(adb_try_handler_change);
205
199
EXPORT_SYMBOL (cuda_request );
206
200
EXPORT_SYMBOL (cuda_poll );
207
201
#endif /* CONFIG_ADB_CUDA */
208
- #ifdef CONFIG_PPC_MULTIPLATFORM
202
+ #if defined( CONFIG_PPC_MULTIPLATFORM ) && defined( CONFIG_PPC32 )
209
203
EXPORT_SYMBOL (_machine );
210
204
#endif
211
205
#ifdef CONFIG_PPC_PMAC
212
206
EXPORT_SYMBOL (sys_ctrler );
213
- EXPORT_SYMBOL (pmac_newworld );
214
207
#endif
215
208
#ifdef CONFIG_VT
216
209
EXPORT_SYMBOL (kd_mksound );
217
210
#endif
218
211
EXPORT_SYMBOL (to_tm );
219
212
220
- EXPORT_SYMBOL (pm_power_off );
221
-
213
+ #ifdef CONFIG_PPC32
214
+ long long __ashrdi3 (long long , int );
215
+ long long __ashldi3 (long long , int );
216
+ long long __lshrdi3 (long long , int );
222
217
EXPORT_SYMBOL (__ashrdi3 );
223
218
EXPORT_SYMBOL (__ashldi3 );
224
219
EXPORT_SYMBOL (__lshrdi3 );
220
+ #endif
221
+
225
222
EXPORT_SYMBOL (memcpy );
226
- EXPORT_SYMBOL (cacheable_memcpy );
227
223
EXPORT_SYMBOL (memset );
228
224
EXPORT_SYMBOL (memmove );
229
225
EXPORT_SYMBOL (memscan );
@@ -234,17 +230,14 @@ EXPORT_SYMBOL(memchr);
234
230
EXPORT_SYMBOL (screen_info );
235
231
#endif
236
232
233
+ #ifdef CONFIG_PPC32
234
+ EXPORT_SYMBOL (pm_power_off );
237
235
EXPORT_SYMBOL (__delay );
238
236
EXPORT_SYMBOL (timer_interrupt );
239
237
EXPORT_SYMBOL (irq_desc );
240
238
EXPORT_SYMBOL (tb_ticks_per_jiffy );
241
- EXPORT_SYMBOL (get_wchan );
242
239
EXPORT_SYMBOL (console_drivers );
243
-
244
- #ifdef CONFIG_PPC_ISERIES
245
- EXPORT_SYMBOL (local_irq_disable );
246
- EXPORT_SYMBOL (local_irq_enable );
247
- EXPORT_SYMBOL (local_get_flags );
240
+ EXPORT_SYMBOL (cacheable_memcpy );
248
241
#endif
249
242
250
243
#ifdef CONFIG_XMON
@@ -255,22 +248,6 @@ EXPORT_SYMBOL(__up);
255
248
EXPORT_SYMBOL (__down );
256
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
251
#ifdef CONFIG_8xx
275
252
EXPORT_SYMBOL (cpm_install_handler );
276
253
EXPORT_SYMBOL (cpm_free_handler );
@@ -280,22 +257,24 @@ EXPORT_SYMBOL(cpm_free_handler);
280
257
EXPORT_SYMBOL (__res );
281
258
#endif
282
259
260
+ #ifdef CONFIG_PPC32
283
261
EXPORT_SYMBOL (next_mmu_context );
284
262
EXPORT_SYMBOL (set_context );
285
- EXPORT_SYMBOL_GPL (__handle_mm_fault ); /* For MOL */
286
263
EXPORT_SYMBOL (disarm_decr );
287
- #ifdef CONFIG_PPC_STD_MMU
264
+ #endif
265
+
266
+ #ifdef CONFIG_PPC_STD_MMU_32
288
267
extern long mol_trampoline ;
289
268
EXPORT_SYMBOL (mol_trampoline ); /* For MOL */
290
269
EXPORT_SYMBOL (flush_hash_pages ); /* For MOL */
270
+ EXPORT_SYMBOL_GPL (__handle_mm_fault ); /* For MOL */
291
271
#ifdef CONFIG_SMP
292
272
extern int mmu_hash_lock ;
293
273
EXPORT_SYMBOL (mmu_hash_lock ); /* For MOL */
294
274
#endif /* CONFIG_SMP */
295
275
extern long * intercept_table ;
296
276
EXPORT_SYMBOL (intercept_table );
297
- #endif /* CONFIG_PPC_STD_MMU */
298
- EXPORT_SYMBOL (cur_cpu_spec );
277
+ #endif /* CONFIG_PPC_STD_MMU_32 */
299
278
#ifdef CONFIG_PPC_PMAC
300
279
extern unsigned long agp_special_page ;
301
280
EXPORT_SYMBOL (agp_special_page );
0 commit comments