diff options
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 21 | ||||
-rw-r--r-- | arch/ppc/kernel/Makefile | 6 | ||||
-rw-r--r-- | include/asm-ppc/pci-bridge.h | 5 |
3 files changed, 10 insertions, 22 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 27d7f828212b..bfa155c00ea5 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -70,6 +70,8 @@ unsigned long ISA_DMA_THRESHOLD; | |||
70 | unsigned int DMA_MODE_READ; | 70 | unsigned int DMA_MODE_READ; |
71 | unsigned int DMA_MODE_WRITE; | 71 | unsigned int DMA_MODE_WRITE; |
72 | 72 | ||
73 | int have_of = 1; | ||
74 | |||
73 | #ifdef CONFIG_PPC_MULTIPLATFORM | 75 | #ifdef CONFIG_PPC_MULTIPLATFORM |
74 | int _machine = 0; | 76 | int _machine = 0; |
75 | 77 | ||
@@ -89,6 +91,7 @@ unsigned long vgacon_remap_base; | |||
89 | #endif | 91 | #endif |
90 | 92 | ||
91 | struct machdep_calls ppc_md; | 93 | struct machdep_calls ppc_md; |
94 | EXPORT_SYMBOL(ppc_md); | ||
92 | 95 | ||
93 | /* | 96 | /* |
94 | * These are used in binfmt_elf.c to put aux entries on the stack | 97 | * These are used in binfmt_elf.c to put aux entries on the stack |
@@ -455,24 +458,6 @@ console_initcall(set_preferred_console); | |||
455 | #endif /* CONFIG_SERIAL_CORE_CONSOLE */ | 458 | #endif /* CONFIG_SERIAL_CORE_CONSOLE */ |
456 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | 459 | #endif /* CONFIG_PPC_MULTIPLATFORM */ |
457 | 460 | ||
458 | struct bi_record *find_bootinfo(void) | ||
459 | { | ||
460 | struct bi_record *rec; | ||
461 | |||
462 | rec = (struct bi_record *)_ALIGN((ulong)__bss_start+(1<<20)-1,(1<<20)); | ||
463 | if ( rec->tag != BI_FIRST ) { | ||
464 | /* | ||
465 | * This 0x10000 offset is a terrible hack but it will go away when | ||
466 | * we have the bootloader handle all the relocation and | ||
467 | * prom calls -- Cort | ||
468 | */ | ||
469 | rec = (struct bi_record *)_ALIGN((ulong)__bss_start+0x10000+(1<<20)-1,(1<<20)); | ||
470 | if ( rec->tag != BI_FIRST ) | ||
471 | return NULL; | ||
472 | } | ||
473 | return rec; | ||
474 | } | ||
475 | |||
476 | /* | 461 | /* |
477 | * Find out what kind of machine we're on and save any data we need | 462 | * Find out what kind of machine we're on and save any data we need |
478 | * from the early boot process (devtree is copied on pmac by prom_init()). | 463 | * from the early boot process (devtree is copied on pmac by prom_init()). |
diff --git a/arch/ppc/kernel/Makefile b/arch/ppc/kernel/Makefile index da2dc08c4c1b..74b30978619f 100644 --- a/arch/ppc/kernel/Makefile +++ b/arch/ppc/kernel/Makefile | |||
@@ -42,13 +42,11 @@ vector-y += ../../powerpc/kernel/vector.o | |||
42 | fpu-y += ../../powerpc/kernel/fpu.o | 42 | fpu-y += ../../powerpc/kernel/fpu.o |
43 | 43 | ||
44 | else | 44 | else |
45 | obj-y := entry.o irq.o idle.o time.o misc.o \ | 45 | obj-y := irq.o idle.o time.o \ |
46 | signal.o ptrace.o align.o \ | 46 | signal.o ptrace.o align.o \ |
47 | syscalls.o setup.o \ | 47 | syscalls.o cputable.o perfmon.o |
48 | cputable.o perfmon.o | ||
49 | obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o | 48 | obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o |
50 | obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o | 49 | obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o |
51 | obj-$(CONFIG_POWER4) += cpu_setup_power4.o | ||
52 | obj-$(CONFIG_MODULES) += module.o | 50 | obj-$(CONFIG_MODULES) += module.o |
53 | obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-mapping.o | 51 | obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-mapping.o |
54 | obj-$(CONFIG_PCI) += pci.o | 52 | obj-$(CONFIG_PCI) += pci.o |
diff --git a/include/asm-ppc/pci-bridge.h b/include/asm-ppc/pci-bridge.h index ffa423456c2b..e58c78f90a5a 100644 --- a/include/asm-ppc/pci-bridge.h +++ b/include/asm-ppc/pci-bridge.h | |||
@@ -79,6 +79,11 @@ struct pci_controller { | |||
79 | struct resource mem_space; | 79 | struct resource mem_space; |
80 | }; | 80 | }; |
81 | 81 | ||
82 | static inline struct pci_controller *pci_bus_to_host(struct pci_bus *bus) | ||
83 | { | ||
84 | return bus->sysdata; | ||
85 | } | ||
86 | |||
82 | /* These are used for config access before all the PCI probing | 87 | /* These are used for config access before all the PCI probing |
83 | has been done. */ | 88 | has been done. */ |
84 | int early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn, | 89 | int early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn, |