diff options
author | Kevin Hao <haokexin@gmail.com> | 2016-07-12 21:14:40 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-19 06:17:07 -0400 |
commit | 27d1149667352772240655b65372a4294f992ea7 (patch) | |
tree | 8bf60406e6276da9013902bd4f09b6db3b6c2b89 /arch | |
parent | 4c91bd6eeabb004f283db8a6854b134e2a2de1bc (diff) |
powerpc/32: Remove RELOCATABLE_PPC32
It is seldom used in the kernel code and can be easily replaced by
either RELOCATABLE or PPC32. So there is no reason to keep a separate
kernel option for this.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/Kconfig | 4 | ||||
-rw-r--r-- | arch/powerpc/include/asm/page.h | 6 | ||||
-rw-r--r-- | arch/powerpc/kernel/Makefile | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/init_32.c | 2 |
5 files changed, 6 insertions, 11 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index f044782f8c65..9b6d36b87ee1 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -481,10 +481,6 @@ config RELOCATABLE | |||
481 | setting can still be useful to bootwrappers that need to know the | 481 | setting can still be useful to bootwrappers that need to know the |
482 | load address of the kernel (eg. u-boot/mkimage). | 482 | load address of the kernel (eg. u-boot/mkimage). |
483 | 483 | ||
484 | config RELOCATABLE_PPC32 | ||
485 | def_bool y | ||
486 | depends on PPC32 && RELOCATABLE | ||
487 | |||
488 | config CRASH_DUMP | 484 | config CRASH_DUMP |
489 | bool "Build a kdump crash kernel" | 485 | bool "Build a kdump crash kernel" |
490 | depends on PPC64 || 6xx || FSL_BOOKE || (44x && !SMP) | 486 | depends on PPC64 || 6xx || FSL_BOOKE || (44x && !SMP) |
diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index 51db3a37bced..56398e7e6100 100644 --- a/arch/powerpc/include/asm/page.h +++ b/arch/powerpc/include/asm/page.h | |||
@@ -96,7 +96,7 @@ extern unsigned int HPAGE_SHIFT; | |||
96 | extern phys_addr_t memstart_addr; | 96 | extern phys_addr_t memstart_addr; |
97 | extern phys_addr_t kernstart_addr; | 97 | extern phys_addr_t kernstart_addr; |
98 | 98 | ||
99 | #ifdef CONFIG_RELOCATABLE_PPC32 | 99 | #if defined(CONFIG_RELOCATABLE) && defined(CONFIG_PPC32) |
100 | extern long long virt_phys_offset; | 100 | extern long long virt_phys_offset; |
101 | #endif | 101 | #endif |
102 | 102 | ||
@@ -139,9 +139,9 @@ extern long long virt_phys_offset; | |||
139 | * determine MEMORY_START until then. However we can determine PHYSICAL_START | 139 | * determine MEMORY_START until then. However we can determine PHYSICAL_START |
140 | * from information at hand (program counter, TLB lookup). | 140 | * from information at hand (program counter, TLB lookup). |
141 | * | 141 | * |
142 | * On BookE with RELOCATABLE (RELOCATABLE_PPC32) | 142 | * On BookE with RELOCATABLE && PPC32 |
143 | * | 143 | * |
144 | * With RELOCATABLE_PPC32, we support loading the kernel at any physical | 144 | * With RELOCATABLE && PPC32, we support loading the kernel at any physical |
145 | * address without any restriction on the page alignment. | 145 | * address without any restriction on the page alignment. |
146 | * | 146 | * |
147 | * We find the runtime address of _stext and relocate ourselves based on | 147 | * We find the runtime address of _stext and relocate ourselves based on |
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 9e7bfc322368..fe4c075bcf50 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -42,7 +42,6 @@ obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o | |||
42 | obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_ppc970.o cpu_setup_pa6t.o | 42 | obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_ppc970.o cpu_setup_pa6t.o |
43 | obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_power.o | 43 | obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_power.o |
44 | obj-$(CONFIG_PPC_BOOK3S_64) += mce.o mce_power.o | 44 | obj-$(CONFIG_PPC_BOOK3S_64) += mce.o mce_power.o |
45 | obj64-$(CONFIG_RELOCATABLE) += reloc_64.o | ||
46 | obj-$(CONFIG_PPC_BOOK3E_64) += exceptions-64e.o idle_book3e.o | 45 | obj-$(CONFIG_PPC_BOOK3E_64) += exceptions-64e.o idle_book3e.o |
47 | obj-$(CONFIG_PPC64) += vdso64/ | 46 | obj-$(CONFIG_PPC64) += vdso64/ |
48 | obj-$(CONFIG_ALTIVEC) += vecemu.o | 47 | obj-$(CONFIG_ALTIVEC) += vecemu.o |
@@ -87,7 +86,7 @@ extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o | |||
87 | extra-$(CONFIG_8xx) := head_8xx.o | 86 | extra-$(CONFIG_8xx) := head_8xx.o |
88 | extra-y += vmlinux.lds | 87 | extra-y += vmlinux.lds |
89 | 88 | ||
90 | obj-$(CONFIG_RELOCATABLE_PPC32) += reloc_32.o | 89 | obj-$(CONFIG_RELOCATABLE) += reloc_$(CONFIG_WORD_SIZE).o |
91 | 90 | ||
92 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o | 91 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o |
93 | obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o | 92 | obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 2dd91f79de05..b5fba689fca6 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -165,7 +165,7 @@ SECTIONS | |||
165 | . = ALIGN(8); | 165 | . = ALIGN(8); |
166 | .dynsym : AT(ADDR(.dynsym) - LOAD_OFFSET) | 166 | .dynsym : AT(ADDR(.dynsym) - LOAD_OFFSET) |
167 | { | 167 | { |
168 | #ifdef CONFIG_RELOCATABLE_PPC32 | 168 | #ifdef CONFIG_PPC32 |
169 | __dynamic_symtab = .; | 169 | __dynamic_symtab = .; |
170 | #endif | 170 | #endif |
171 | *(.dynsym) | 171 | *(.dynsym) |
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index e2d7ba124618..448685fbf27c 100644 --- a/arch/powerpc/mm/init_32.c +++ b/arch/powerpc/mm/init_32.c | |||
@@ -64,7 +64,7 @@ EXPORT_SYMBOL(memstart_addr); | |||
64 | phys_addr_t kernstart_addr; | 64 | phys_addr_t kernstart_addr; |
65 | EXPORT_SYMBOL(kernstart_addr); | 65 | EXPORT_SYMBOL(kernstart_addr); |
66 | 66 | ||
67 | #ifdef CONFIG_RELOCATABLE_PPC32 | 67 | #ifdef CONFIG_RELOCATABLE |
68 | /* Used in __va()/__pa() */ | 68 | /* Used in __va()/__pa() */ |
69 | long long virt_phys_offset; | 69 | long long virt_phys_offset; |
70 | EXPORT_SYMBOL(virt_phys_offset); | 70 | EXPORT_SYMBOL(virt_phys_offset); |