]> Git Repo - linux.git/commitdiff
x86, efi: Fix processor-specific memcpy() build error
authorMatt Fleming <[email protected]>
Tue, 20 Nov 2012 13:07:46 +0000 (13:07 +0000)
committerMatt Fleming <[email protected]>
Tue, 20 Nov 2012 20:52:07 +0000 (20:52 +0000)
Building for Athlon/Duron/K7 results in the following build error,

arch/x86/boot/compressed/eboot.o: In function `__constant_memcpy3d':
eboot.c:(.text+0x385): undefined reference to `_mmx_memcpy'
arch/x86/boot/compressed/eboot.o: In function `efi_main':
eboot.c:(.text+0x1a22): undefined reference to `_mmx_memcpy'

because the boot stub code doesn't link with the kernel proper, and
therefore doesn't have access to the 3DNow version of memcpy. So,
follow the example of misc.c and #undef memcpy so that we use the
version provided by misc.c.

See https://bugzilla.kernel.org/show_bug.cgi?id=50391

Reported-by: Al Viro <[email protected]>
Reported-by: Ryan Underwood <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: [email protected]
Signed-off-by: Matt Fleming <[email protected]>
arch/x86/boot/compressed/eboot.c

index c760e073963ed59004f66ed65aade6355c852da9..e87b0cac14b5e5d735ab21f9f3b163db52349938 100644 (file)
@@ -12,6 +12,8 @@
 #include <asm/setup.h>
 #include <asm/desc.h>
 
+#undef memcpy                  /* Use memcpy from misc.c */
+
 #include "eboot.h"
 
 static efi_system_table_t *sys_table;
This page took 0.058178 seconds and 4 git commands to generate.