]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 9 Jul 2021 03:10:23 +0000 (20:10 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 9 Jul 2021 03:10:23 +0000 (20:10 -0700)
open-vm-tools/lib/include/vm_basic_asm_arm64.h

index 5b78ea6fa030d99f0297bcd1921f58d3a52fa853..b7caeb5cb2993994ee3384ecdabc3c87b871880c 100644 (file)
@@ -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
  * ===============