diff options
author | mbr <mbr@FreeBSD.org> | 2008-05-16 01:28:20 +0800 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2008-05-16 01:28:20 +0800 |
commit | effb0a2f09bfe3722e30a6235f56e7b031359440 (patch) | |
tree | 721e45bd2f85c002855187bbeeddf4f9eadcca51 /emulators | |
parent | 5ee1e3c8864bb9c2a3c9ac90e64f762472a9a955 (diff) | |
download | freebsd-ports-gnome-effb0a2f09bfe3722e30a6235f56e7b031359440.tar.gz freebsd-ports-gnome-effb0a2f09bfe3722e30a6235f56e7b031359440.tar.zst freebsd-ports-gnome-effb0a2f09bfe3722e30a6235f56e7b031359440.zip |
Fix __asm macros for asm_x86_64
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/open-vm-tools/files/patch-asm | 20 |
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) |