aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/setup.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-11 08:08:12 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-11 08:08:12 -0400
commitfd582ec88eb8d2d907876603e4ecebe6eab330d9 (patch)
treebafacc1916098001051b8235722daa6b9b52e63a /arch/ppc/kernel/setup.c
parent35d81a4bfe28a6ea81c9f67c9ce40543124ded0b (diff)
ppc: Various minor compile fixes
This fixes up a variety of minor problems in compiling with ARCH=ppc arising from using the merged versions of various header files. A lot of the changes are just adding #include <asm/machdep.h> to files that use ppc_md or smp_ops_t. This also arranges for us to use semaphore.c, vecemu.c, vector.S and fpu.S from arch/powerpc/kernel when compiling with ARCH=ppc. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/kernel/setup.c')
-rw-r--r--arch/ppc/kernel/setup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/ppc/kernel/setup.c b/arch/ppc/kernel/setup.c
index fae6335193ef..6bcb85d2b7fd 100644
--- a/arch/ppc/kernel/setup.c
+++ b/arch/ppc/kernel/setup.c
@@ -87,6 +87,9 @@ extern void chrp_init(unsigned long r3, unsigned long r4,
87dev_t boot_dev; 87dev_t boot_dev;
88#endif /* CONFIG_PPC_MULTIPLATFORM */ 88#endif /* CONFIG_PPC_MULTIPLATFORM */
89 89
90int have_of;
91EXPORT_SYMBOL(have_of);
92
90#ifdef __DO_IRQ_CANON 93#ifdef __DO_IRQ_CANON
91int ppc_do_canonicalize_irqs; 94int ppc_do_canonicalize_irqs;
92EXPORT_SYMBOL(ppc_do_canonicalize_irqs); 95EXPORT_SYMBOL(ppc_do_canonicalize_irqs);
@@ -420,6 +423,8 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
420 } 423 }
421#endif 424#endif
422 425
426 have_of = 1;
427
423 /* prom_init has already been called from __start */ 428 /* prom_init has already been called from __start */
424 if (boot_infos) 429 if (boot_infos)
425 relocate_nodes(); 430 relocate_nodes();
@@ -735,7 +740,7 @@ void __init setup_arch(char **cmdline_p)
735#endif 740#endif
736 741
737#ifdef CONFIG_XMON 742#ifdef CONFIG_XMON
738 xmon_map_scc(); 743 xmon_init(1);
739 if (strstr(cmd_line, "xmon")) 744 if (strstr(cmd_line, "xmon"))
740 xmon(NULL); 745 xmon(NULL);
741#endif /* CONFIG_XMON */ 746#endif /* CONFIG_XMON */