From: John Wolfe Date: Fri, 9 Jul 2021 03:10:23 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-12.0.0~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5c26b8bddbe7817d49b2f48dba6776e5d4f851;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_arm64.h b/open-vm-tools/lib/include/vm_basic_asm_arm64.h index 5b78ea6fa..b7caeb5cb 100644 --- a/open-vm-tools/lib/include/vm_basic_asm_arm64.h +++ b/open-vm-tools/lib/include/vm_basic_asm_arm64.h @@ -143,6 +143,36 @@ ISB(void) } +/* + *---------------------------------------------------------------------- + * + * ESB -- + * + * Error synchronization barrier. + * + * Error synchronization event as per Arm ARM. NOP if ARMv8.2 + * RAS extensions are not implemented. + * + * Results: + * None + * + * Side effects: + * SError exception or DISR/VDISR getting updated. + * + *---------------------------------------------------------------------- + */ + +static INLINE void +ESB(void) +{ +#if defined __GNUC__ + asm volatile(".arch armv8.2-a\n\tesb" ::: "memory"); +#else +#error No compiler defined for ESB +#endif +} + + /* * Memory Barriers * ===============