]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Mon, 17 Jun 2019 18:41:37 +0000 (11:41 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 17 Jun 2019 18:41:37 +0000 (11:41 -0700)
open-vm-tools/lib/include/vm_basic_asm_x86_64.h

index d0be222d871f28a63a30f68c86e79726d1f96f67..b29617935a2145eacc6866aef4b521745c3ee920 100644 (file)
@@ -216,6 +216,16 @@ XSAVEOPT_ES1(void *save, uint64 mask)
         : "memory");
 }
 
+static INLINE void
+XSAVEC_COMPAT_ES1(void *save, uint64 mask)
+{
+   __asm__ __volatile__ (
+        "xsavec %0 \n"
+        : "=m" (*(uint8 *)save)
+        : "a" ((uint32)mask), "d" ((uint32)(mask >> 32))
+        : "memory");
+}
+
 static INLINE void
 XRSTOR_ES1(const void *load, uint64 mask)
 {