commit 380d41f776ef3719586818edc6d2d64755d3de3c (HEAD -> add_s390x_mt-asm, origin/add_s390x_mt-asm) Author: Namrata Bhave Date: Tue Apr 18 14:50:26 2023 +0530 Add missing s390x support for NDB diff --git a/storage/ndb/include/portlib/mt-asm.h b/storage/ndb/include/portlib/mt-asm.h index 418b8d9c711..2ccee71e91a 100644 --- a/storage/ndb/include/portlib/mt-asm.h +++ b/storage/ndb/include/portlib/mt-asm.h @@ -144,6 +144,15 @@ xcng(volatile unsigned * addr, int val) return prev; } +#elif defined(__s390x__) +#define NDB_HAVE_MB +#define NDB_HAVE_RMB +#define NDB_HAVE_WMB + +#define mb() { asm volatile("" : : : "memory"); } +#define rmb() mb() +#define wmb() mb() + #elif defined(__aarch64__) #include #define NDB_HAVE_MB