svn commit: r221331 - head/sys/x86/x86

Jung-uk Kim jkim at FreeBSD.org
Mon May 2 17:08:36 UTC 2011


Author: jkim
Date: Mon May  2 17:08:36 2011
New Revision: 221331
URL: http://svn.freebsd.org/changeset/base/221331

Log:
  Fix build with clang.  Please note there is an LLVM/Clang PR:
  
  http://llvm.org/bugs/show_bug.cgi?id=9379
  
  Reported by:	rpaulo, dim

Modified:
  head/sys/x86/x86/tsc.c

Modified: head/sys/x86/x86/tsc.c
==============================================================================
--- head/sys/x86/x86/tsc.c	Mon May  2 17:04:09 2011	(r221330)
+++ head/sys/x86/x86/tsc.c	Mon May  2 17:08:36 2011	(r221331)
@@ -100,7 +100,7 @@ static __inline void
 vmware_hvcall(u_int cmd, u_int *p)
 {
 
-	__asm __volatile("inl (%%dx)"
+	__asm __volatile("inl %w3, %0"
 	: "=a" (p[0]), "=b" (p[1]), "=c" (p[2]), "=d" (p[3])
 	: "0" (VMW_HVMAGIC), "1" (UINT_MAX), "2" (cmd), "3" (VMW_HVPORT)
 	: "memory");


More information about the svn-src-head mailing list