summaryrefslogtreecommitdiff
path: root/emulators/open-vm-tools
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2008-05-15 17:28:20 +0000
committerMartin Blapp <mbr@FreeBSD.org>2008-05-15 17:28:20 +0000
commit5e6d3f4f88434a6850606df85ec139c9ef215c55 (patch)
tree7829eb920360ada1764a70da1c5dbe2fa520d258 /emulators/open-vm-tools
parent- Add dependency on devel/icu (diff)
Fix __asm macros for asm_x86_64
Notes
Notes: svn path=/head/; revision=213090
Diffstat (limited to 'emulators/open-vm-tools')
-rw-r--r--emulators/open-vm-tools/files/patch-asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/open-vm-tools/files/patch-asm b/emulators/open-vm-tools/files/patch-asm
index 39cea8c36d0e..0b264af250e3 100644
--- a/emulators/open-vm-tools/files/patch-asm
+++ b/emulators/open-vm-tools/files/patch-asm
@@ -27,3 +27,23 @@
"mov %%edx, %%eax\n\t" // Get hi(multiplicand)
"test %%eax, %%eax\n\t" // Check sign of multiplicand
"jl 0f\n\t" // Go if negative
+--- modules/freebsd/vmhgfs/vm_basic_asm_x86_64.h.orig 2008-05-15 19:25:31.000000000 +0200
++++ modules/freebsd/vmhgfs/vm_basic_asm_x86_64.h 2008-05-15 19:25:52.000000000 +0200
+@@ -162,7 +162,7 @@
+ uint64 result, dummy;
+ const uint64 multiplier64 = multiplier;
+
+- asm("mulq %3 \n\t"
++ __asm("mulq %3 \n\t"
+ "shrdq %1, %0 \n\t"
+ : "=a" (result),
+ "=d" (dummy)
+@@ -221,7 +221,7 @@
+ int64 result, dummy;
+ const int64 multiplier64 = multiplier;
+
+- asm("imulq %3 \n\t"
++ __asm("imulq %3 \n\t"
+ "shrdq %1, %0 \n\t"
+ : "=a" (result),
+ "=d" (dummy)