From: Oliver Kurth Date: Mon, 17 Jun 2019 18:41:37 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d8b16e2cc1a21919cb6974c2a87071a345e232;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_asm_x86_64.h b/open-vm-tools/lib/include/vm_basic_asm_x86_64.h index d0be222d8..b29617935 100644 --- a/open-vm-tools/lib/include/vm_basic_asm_x86_64.h +++ b/open-vm-tools/lib/include/vm_basic_asm_x86_64.h @@ -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) {