提交 a7a1ed30 编写于 作者: S s.hauer@pengutronix.de 提交者: Paul Mackerras

[PATCH] Remove occurences of PPC_MULTIPLATFORM in head_64.S

Since iSeries is merged to MULTIPLATFORM, there is no way to build a 64bit
kernel without MULTIPLATFORM, so PPC_MULTIPLATFORM can be removed in
64bit-only files.
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 68e1300a
...@@ -736,8 +736,6 @@ _STATIC(rtas_restore_regs) ...@@ -736,8 +736,6 @@ _STATIC(rtas_restore_regs)
#endif /* CONFIG_PPC_RTAS */ #endif /* CONFIG_PPC_RTAS */
#ifdef CONFIG_PPC_MULTIPLATFORM
_GLOBAL(enter_prom) _GLOBAL(enter_prom)
mflr r0 mflr r0
std r0,16(r1) std r0,16(r1)
...@@ -822,5 +820,3 @@ _GLOBAL(enter_prom) ...@@ -822,5 +820,3 @@ _GLOBAL(enter_prom)
ld r0,16(r1) ld r0,16(r1)
mtlr r0 mtlr r0
blr blr
#endif /* CONFIG_PPC_MULTIPLATFORM */
...@@ -72,13 +72,11 @@ ...@@ -72,13 +72,11 @@
.text .text
.globl _stext .globl _stext
_stext: _stext:
#ifdef CONFIG_PPC_MULTIPLATFORM
_GLOBAL(__start) _GLOBAL(__start)
/* NOP this out unconditionally */ /* NOP this out unconditionally */
BEGIN_FTR_SECTION BEGIN_FTR_SECTION
b .__start_initialization_multiplatform b .__start_initialization_multiplatform
END_FTR_SECTION(0, 1) END_FTR_SECTION(0, 1)
#endif /* CONFIG_PPC_MULTIPLATFORM */
/* Catch branch to 0 in real mode */ /* Catch branch to 0 in real mode */
trap trap
...@@ -1643,7 +1641,6 @@ _STATIC(__start_initialization_iSeries) ...@@ -1643,7 +1641,6 @@ _STATIC(__start_initialization_iSeries)
b .start_here_common b .start_here_common
#endif /* CONFIG_PPC_ISERIES */ #endif /* CONFIG_PPC_ISERIES */
#ifdef CONFIG_PPC_MULTIPLATFORM
_STATIC(__mmu_off) _STATIC(__mmu_off)
mfmsr r3 mfmsr r3
...@@ -1669,13 +1666,11 @@ _STATIC(__mmu_off) ...@@ -1669,13 +1666,11 @@ _STATIC(__mmu_off)
* *
*/ */
_GLOBAL(__start_initialization_multiplatform) _GLOBAL(__start_initialization_multiplatform)
#ifdef CONFIG_PPC_MULTIPLATFORM
/* /*
* Are we booted from a PROM Of-type client-interface ? * Are we booted from a PROM Of-type client-interface ?
*/ */
cmpldi cr0,r5,0 cmpldi cr0,r5,0
bne .__boot_from_prom /* yes -> prom */ bne .__boot_from_prom /* yes -> prom */
#endif
/* Save parameters */ /* Save parameters */
mr r31,r3 mr r31,r3
...@@ -1702,7 +1697,6 @@ _GLOBAL(__start_initialization_multiplatform) ...@@ -1702,7 +1697,6 @@ _GLOBAL(__start_initialization_multiplatform)
bl .__mmu_off bl .__mmu_off
b .__after_prom_start b .__after_prom_start
#ifdef CONFIG_PPC_MULTIPLATFORM
_STATIC(__boot_from_prom) _STATIC(__boot_from_prom)
/* Save parameters */ /* Save parameters */
mr r31,r3 mr r31,r3
...@@ -1742,7 +1736,6 @@ _STATIC(__boot_from_prom) ...@@ -1742,7 +1736,6 @@ _STATIC(__boot_from_prom)
bl .prom_init bl .prom_init
/* We never return */ /* We never return */
trap trap
#endif
/* /*
* At this point, r3 contains the physical address we are running at, * At this point, r3 contains the physical address we are running at,
...@@ -1798,8 +1791,6 @@ _STATIC(__after_prom_start) ...@@ -1798,8 +1791,6 @@ _STATIC(__after_prom_start)
bl .copy_and_flush /* copy the rest */ bl .copy_and_flush /* copy the rest */
b .start_here_multiplatform b .start_here_multiplatform
#endif /* CONFIG_PPC_MULTIPLATFORM */
/* /*
* Copy routine used to copy the kernel to start at physical address 0 * Copy routine used to copy the kernel to start at physical address 0
* and flush and invalidate the caches as needed. * and flush and invalidate the caches as needed.
...@@ -1964,7 +1955,6 @@ _GLOBAL(enable_64b_mode) ...@@ -1964,7 +1955,6 @@ _GLOBAL(enable_64b_mode)
isync isync
blr blr
#ifdef CONFIG_PPC_MULTIPLATFORM
/* /*
* This is where the main kernel code starts. * This is where the main kernel code starts.
*/ */
...@@ -2035,7 +2025,6 @@ _STATIC(start_here_multiplatform) ...@@ -2035,7 +2025,6 @@ _STATIC(start_here_multiplatform)
mtspr SPRN_SRR1,r4 mtspr SPRN_SRR1,r4
rfid rfid
b . /* prevent speculative execution */ b . /* prevent speculative execution */
#endif /* CONFIG_PPC_MULTIPLATFORM */
/* This is where all platforms converge execution */ /* This is where all platforms converge execution */
_STATIC(start_here_common) _STATIC(start_here_common)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册