aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/setup.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-09-26 02:04:21 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-26 02:04:21 -0400
commit14cf11af6cf608eb8c23e989ddb17a715ddce109 (patch)
tree271a97ce73e265f39c569cb159c195c5b4bb3f8c /arch/ppc/kernel/setup.c
parente5baa396af7560382d2cf3f0871d616b61fc284c (diff)
powerpc: Merge enough to start building in arch/powerpc.
This creates the directory structure under arch/powerpc and a bunch of Kconfig files. It does a first-cut merge of arch/powerpc/mm, arch/powerpc/lib and arch/powerpc/platforms/powermac. This is enough to build a 32-bit powermac kernel with ARCH=powerpc. For now we are getting some unmerged files from arch/ppc/kernel and arch/ppc/syslib, or arch/ppc64/kernel. This makes some minor changes to files in those directories and files outside arch/powerpc. The boot directory is still not merged. That's going to be interesting. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/kernel/setup.c')
-rw-r--r--arch/ppc/kernel/setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/ppc/kernel/setup.c b/arch/ppc/kernel/setup.c
index 77fecfbabe88..1b891b806f3d 100644
--- a/arch/ppc/kernel/setup.c
+++ b/arch/ppc/kernel/setup.c
@@ -83,6 +83,8 @@ extern void pmac_init(unsigned long r3, unsigned long r4,
83 unsigned long r5, unsigned long r6, unsigned long r7); 83 unsigned long r5, unsigned long r6, unsigned long r7);
84extern void chrp_init(unsigned long r3, unsigned long r4, 84extern void chrp_init(unsigned long r3, unsigned long r4,
85 unsigned long r5, unsigned long r6, unsigned long r7); 85 unsigned long r5, unsigned long r6, unsigned long r7);
86
87dev_t boot_dev;
86#endif /* CONFIG_PPC_MULTIPLATFORM */ 88#endif /* CONFIG_PPC_MULTIPLATFORM */
87 89
88#ifdef CONFIG_MAGIC_SYSRQ 90#ifdef CONFIG_MAGIC_SYSRQ
@@ -405,11 +407,13 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
405 _machine = _MACH_prep; 407 _machine = _MACH_prep;
406 } 408 }
407 409
410#ifdef CONFIG_PPC_PREP
408 /* not much more to do here, if prep */ 411 /* not much more to do here, if prep */
409 if (_machine == _MACH_prep) { 412 if (_machine == _MACH_prep) {
410 prep_init(r3, r4, r5, r6, r7); 413 prep_init(r3, r4, r5, r6, r7);
411 return; 414 return;
412 } 415 }
416#endif
413 417
414 /* prom_init has already been called from __start */ 418 /* prom_init has already been called from __start */
415 if (boot_infos) 419 if (boot_infos)
@@ -480,12 +484,16 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
480#endif /* CONFIG_ADB */ 484#endif /* CONFIG_ADB */
481 485
482 switch (_machine) { 486 switch (_machine) {
487#ifdef CONFIG_PPC_PMAC
483 case _MACH_Pmac: 488 case _MACH_Pmac:
484 pmac_init(r3, r4, r5, r6, r7); 489 pmac_init(r3, r4, r5, r6, r7);
485 break; 490 break;
491#endif
492#ifdef CONFIG_PPC_CHRP
486 case _MACH_chrp: 493 case _MACH_chrp:
487 chrp_init(r3, r4, r5, r6, r7); 494 chrp_init(r3, r4, r5, r6, r7);
488 break; 495 break;
496#endif
489 } 497 }
490} 498}
491 499