[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: redefine REX64_PREFIX for clang, which doesn't like 'rex64/'.



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1299496871 0
# Node ID 2bc9bd01b5fac6e42e3a6d56a7944f69b76972c1
# Parent  0edb666c8300863d570ab29ad9cb9c82531625b9
x86: redefine REX64_PREFIX for clang, which doesn't like 'rex64/'.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Acked-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 0edb666c8300 -r 2bc9bd01b5fa xen/include/asm-x86/x86_64/asm_defns.h
--- a/xen/include/asm-x86/x86_64/asm_defns.h    Mon Mar 07 11:21:11 2011 +0000
+++ b/xen/include/asm-x86/x86_64/asm_defns.h    Mon Mar 07 11:21:11 2011 +0000
@@ -84,6 +84,8 @@
 
 #ifdef __sun__
 #define REX64_PREFIX "rex64\\"
+#elif defined(__clang__)
+#define REX64_PREFIX ".byte 0x48; "
 #else
 #define REX64_PREFIX "rex64/"
 #endif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.