summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot/crtsavres.S
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-05-12 01:56:50 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-05-30 14:59:51 +1000
commit7c868b66f8cc29bb9a63632b324a6fa661bdec05 (patch)
treea641fbadc0678b58ab6bd6ee2200a80e6bd6e4be /arch/powerpc/boot/crtsavres.S
parentbaa25b571a168aff5a13bfdc973f1229e2b12b63 (diff)
powerpc/64: Do not link crtsaveres.o in boot
crtsaveres.S is empty with 64-bit builds already, so just don't build and link it to match the vmlinux build. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Use CONFIG_PPC64_BOOT_WRAPPER not CONFIG_PPC32 to fix BE build] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/crtsavres.S')
-rw-r--r--arch/powerpc/boot/crtsavres.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/boot/crtsavres.S b/arch/powerpc/boot/crtsavres.S
index f3d9b35c07d4..085fb2b9a8b8 100644
--- a/arch/powerpc/boot/crtsavres.S
+++ b/arch/powerpc/boot/crtsavres.S
@@ -37,12 +37,13 @@
* the executable file might be covered by the GNU General Public License.
*/
+#ifdef __powerpc64__
+#error "On PPC64, FPR save/restore functions are provided by the linker."
+#endif
+
.file "crtsavres.S"
.section ".text"
-/* On PowerPC64 Linux, these functions are provided by the linker. */
-#ifndef __powerpc64__
-
#define _GLOBAL(name) \
.type name,@function; \
.globl name; \
@@ -230,4 +231,3 @@ _GLOBAL(_rest32gpr_31_x)
mtlr 0
mr 1,11
blr
-#endif