* [PATCH] x86, efi: Fix processor-specific memcpy() build error
@ 2012-03-22 10:18 Matt Fleming
0 siblings, 0 replies; only message in thread
From: Matt Fleming @ 2012-03-22 10:18 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Al Viro, x86, linux-kernel, Matt Fleming
From: Matt Fleming <matt.fleming@intel.com>
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.
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
---
arch/x86/boot/compressed/eboot.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
index fec216f..3481574 100644
--- a/arch/x86/boot/compressed/eboot.c
+++ b/arch/x86/boot/compressed/eboot.c
@@ -14,6 +14,8 @@
#include "eboot.h"
+#undef memcpy /* Use memcpy from misc.c */
+
static efi_system_table_t *sys_table;
static efi_status_t __get_map(efi_memory_desc_t **map, unsigned long *map_size,
--
1.7.4.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-22 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22 10:18 [PATCH] x86, efi: Fix processor-specific memcpy() build error Matt Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®