From: Scott Parish Subject: [patch] explicitly defining memmove for x86_64 Date: Wed, 4 May 2005 23:06:46 +0000 Message-ID: <20050504230646.GB3247@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="DocE+STaALJfprDB" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Without the attached patch ubuntu's gcc (3.3.5) was complaining about the implicit declaration of __builtin_memmove. Extern'ing past that, the linker wouldn't resolve the same symbol. This patch just does the same thing that is already done for x86_32. signed-off-by: scott parish sRp -- Scott Parish --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="x86-64-memmove.diff" --- old-xen-build/xen/include/asm-x86/x86_64/string.h 2005-05-02 18:29:44.000000000 +0000 +++ new-xen-build/xen/include/asm-x86/x86_64/string.h 2005-05-04 23:12:53.000000000 +0000 @@ -3,7 +3,29 @@ #define __HAVE_ARCH_MEMMOVE #define memmove(dest,src,n) (__memmove((dest),(src),(n))) -#define __memmove(dest,src,n) (__builtin_memmove((dest),(src),(n))) +static inline void *__memmove(void * dest,const void * src, size_t n) +{ +int d0, d1, d2; +if (dest