···11-#ifndef __SYSDEP_I386_BARRIER_H22-#define __SYSDEP_I386_BARRIER_H33-44-/* Copied from include/asm-i386 for use by userspace. i386 has the option55- * of using mfence, but I'm just using this, which works everywhere, for now.66- */77-#define mb() asm volatile("lock; addl $0,0(%esp)")88-99-#endif
-7
arch/um/sys-x86/shared/sysdep/barrier_64.h
···11-#ifndef __SYSDEP_X86_64_BARRIER_H22-#define __SYSDEP_X86_64_BARRIER_H33-44-/* Copied from include/asm-x86_64 for use by userspace. */55-#define mb() asm volatile("mfence":::"memory")66-77-#endif