Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 May 2011 17:08:36 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221331 - head/sys/x86/x86
Message-ID:  <201105021708.p42H8auB046822@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105021708.p42H8auB046822>