diff options
author | jkim <jkim@FreeBSD.org> | 2011-05-02 17:08:36 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-05-02 17:08:36 +0000 |
commit | 44b010200b1422781884eb64f2c369b441f8a584 (patch) | |
tree | 3b0b4d2b358fe5064ee958488b539f13935846ce /sys/x86 | |
parent | 07db5669ead32fc317eb26df9ef174400cebb31c (diff) | |
download | FreeBSD-src-44b010200b1422781884eb64f2c369b441f8a584.zip FreeBSD-src-44b010200b1422781884eb64f2c369b441f8a584.tar.gz |
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
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/x86/tsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index 0b7510c..34d445b 100644 --- a/sys/x86/x86/tsc.c +++ b/sys/x86/x86/tsc.c @@ -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"); |