diff options
Diffstat (limited to 'emulators/open-vm-tools/files/patch-checkvm.c')
-rw-r--r-- | emulators/open-vm-tools/files/patch-checkvm.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/emulators/open-vm-tools/files/patch-checkvm.c b/emulators/open-vm-tools/files/patch-checkvm.c deleted file mode 100644 index 81cbec9239e9..000000000000 --- a/emulators/open-vm-tools/files/patch-checkvm.c +++ /dev/null @@ -1,47 +0,0 @@ ---- checkvm/checkvm.c.orig -+++ checkvm/checkvm.c -@@ -56,7 +56,7 @@ - uint32 val - ) - { -- __asm__ volatile("out%L0 (%%dx)" : :"a" (val), "d" (port)); -+ __asm__ volatile("outl %%eax, %%dx" : :"a" (val), "d" (port)); - } - - static __inline__ uint32 -@@ -66,7 +66,7 @@ - { - uint32 ret; - -- __asm__ volatile("in%L0 (%%dx)" : "=a" (ret) : "d" (port)); -+ __asm__ volatile("inl %%dx, %%eax" : "=a" (ret) : "d" (port)); - return ret; - } - -@@ -79,7 +79,7 @@ - { - uint32 eax, ebx, ecx, edx; - -- __asm__ volatile("inl (%%dx)" : -+ __asm__ volatile("inl %%dx, %%eax" : - "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : - "0"(BDOOR_MAGIC), "1"(BDOOR_CMD_GETVERSION), - "2"(BDOOR_PORT) : "memory"); -@@ -96,7 +96,7 @@ - { - uint32 eax, ebx, ecx, edx; - -- __asm__ volatile("inl (%%dx)" : -+ __asm__ volatile("inl %%dx, %%eax" : - "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : - "0"(BDOOR_MAGIC), "1"(BDOOR_CMD_GETHWVERSION), - "2"(BDOOR_PORT) : "memory"); -@@ -112,7 +112,7 @@ - { - uint32 eax, ebx, ecx, edx; - -- __asm__ volatile("inl (%%dx)" : -+ __asm__ volatile("inl %%dx, %%eax" : - "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : - "0"(BDOOR_MAGIC), "1"(BDOOR_CMD_GETSCREENSIZE), - "2"(BDOOR_PORT) : "memory"); |