diff options
author | s.hauer@pengutronix.de <s.hauer@pengutronix.de> | 2006-11-02 07:56:04 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-11-12 22:44:58 -0500 |
commit | a7a1ed305043961ed06e0ee5e7a4a2cc1250f4b5 (patch) | |
tree | 85cd901113b6aee1890facf8468c72a9de176315 | |
parent | 68e1300a55310a288b87f2a7d6045df0d0f802bc (diff) |
[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: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_64.S | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 86e2bdd5afd6..ec754c92ba94 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S | |||
@@ -736,8 +736,6 @@ _STATIC(rtas_restore_regs) | |||
736 | 736 | ||
737 | #endif /* CONFIG_PPC_RTAS */ | 737 | #endif /* CONFIG_PPC_RTAS */ |
738 | 738 | ||
739 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
740 | |||
741 | _GLOBAL(enter_prom) | 739 | _GLOBAL(enter_prom) |
742 | mflr r0 | 740 | mflr r0 |
743 | std r0,16(r1) | 741 | std r0,16(r1) |
@@ -822,5 +820,3 @@ _GLOBAL(enter_prom) | |||
822 | ld r0,16(r1) | 820 | ld r0,16(r1) |
823 | mtlr r0 | 821 | mtlr r0 |
824 | blr | 822 | blr |
825 | |||
826 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | ||
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index d2890050b7e0..76d1c81afe52 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S | |||
@@ -72,13 +72,11 @@ | |||
72 | .text | 72 | .text |
73 | .globl _stext | 73 | .globl _stext |
74 | _stext: | 74 | _stext: |
75 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
76 | _GLOBAL(__start) | 75 | _GLOBAL(__start) |
77 | /* NOP this out unconditionally */ | 76 | /* NOP this out unconditionally */ |
78 | BEGIN_FTR_SECTION | 77 | BEGIN_FTR_SECTION |
79 | b .__start_initialization_multiplatform | 78 | b .__start_initialization_multiplatform |
80 | END_FTR_SECTION(0, 1) | 79 | END_FTR_SECTION(0, 1) |
81 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | ||
82 | 80 | ||
83 | /* Catch branch to 0 in real mode */ | 81 | /* Catch branch to 0 in real mode */ |
84 | trap | 82 | trap |
@@ -1643,7 +1641,6 @@ _STATIC(__start_initialization_iSeries) | |||
1643 | b .start_here_common | 1641 | b .start_here_common |
1644 | #endif /* CONFIG_PPC_ISERIES */ | 1642 | #endif /* CONFIG_PPC_ISERIES */ |
1645 | 1643 | ||
1646 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
1647 | 1644 | ||
1648 | _STATIC(__mmu_off) | 1645 | _STATIC(__mmu_off) |
1649 | mfmsr r3 | 1646 | mfmsr r3 |
@@ -1669,13 +1666,11 @@ _STATIC(__mmu_off) | |||
1669 | * | 1666 | * |
1670 | */ | 1667 | */ |
1671 | _GLOBAL(__start_initialization_multiplatform) | 1668 | _GLOBAL(__start_initialization_multiplatform) |
1672 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
1673 | /* | 1669 | /* |
1674 | * Are we booted from a PROM Of-type client-interface ? | 1670 | * Are we booted from a PROM Of-type client-interface ? |
1675 | */ | 1671 | */ |
1676 | cmpldi cr0,r5,0 | 1672 | cmpldi cr0,r5,0 |
1677 | bne .__boot_from_prom /* yes -> prom */ | 1673 | bne .__boot_from_prom /* yes -> prom */ |
1678 | #endif | ||
1679 | 1674 | ||
1680 | /* Save parameters */ | 1675 | /* Save parameters */ |
1681 | mr r31,r3 | 1676 | mr r31,r3 |
@@ -1702,7 +1697,6 @@ _GLOBAL(__start_initialization_multiplatform) | |||
1702 | bl .__mmu_off | 1697 | bl .__mmu_off |
1703 | b .__after_prom_start | 1698 | b .__after_prom_start |
1704 | 1699 | ||
1705 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
1706 | _STATIC(__boot_from_prom) | 1700 | _STATIC(__boot_from_prom) |
1707 | /* Save parameters */ | 1701 | /* Save parameters */ |
1708 | mr r31,r3 | 1702 | mr r31,r3 |
@@ -1742,7 +1736,6 @@ _STATIC(__boot_from_prom) | |||
1742 | bl .prom_init | 1736 | bl .prom_init |
1743 | /* We never return */ | 1737 | /* We never return */ |
1744 | trap | 1738 | trap |
1745 | #endif | ||
1746 | 1739 | ||
1747 | /* | 1740 | /* |
1748 | * At this point, r3 contains the physical address we are running at, | 1741 | * At this point, r3 contains the physical address we are running at, |
@@ -1798,8 +1791,6 @@ _STATIC(__after_prom_start) | |||
1798 | bl .copy_and_flush /* copy the rest */ | 1791 | bl .copy_and_flush /* copy the rest */ |
1799 | b .start_here_multiplatform | 1792 | b .start_here_multiplatform |
1800 | 1793 | ||
1801 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | ||
1802 | |||
1803 | /* | 1794 | /* |
1804 | * Copy routine used to copy the kernel to start at physical address 0 | 1795 | * Copy routine used to copy the kernel to start at physical address 0 |
1805 | * and flush and invalidate the caches as needed. | 1796 | * and flush and invalidate the caches as needed. |
@@ -1964,7 +1955,6 @@ _GLOBAL(enable_64b_mode) | |||
1964 | isync | 1955 | isync |
1965 | blr | 1956 | blr |
1966 | 1957 | ||
1967 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
1968 | /* | 1958 | /* |
1969 | * This is where the main kernel code starts. | 1959 | * This is where the main kernel code starts. |
1970 | */ | 1960 | */ |
@@ -2035,7 +2025,6 @@ _STATIC(start_here_multiplatform) | |||
2035 | mtspr SPRN_SRR1,r4 | 2025 | mtspr SPRN_SRR1,r4 |
2036 | rfid | 2026 | rfid |
2037 | b . /* prevent speculative execution */ | 2027 | b . /* prevent speculative execution */ |
2038 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | ||
2039 | 2028 | ||
2040 | /* This is where all platforms converge execution */ | 2029 | /* This is where all platforms converge execution */ |
2041 | _STATIC(start_here_common) | 2030 | _STATIC(start_here_common) |