/* * From tools/perf/perf-sys.h, last modified in: * f428ebd184c82a7914b2aa7e9f868918aaf7ea78 perf tools: Fix AAAAARGH64 memory barriers * * XXX: arch/arm64/include/asm/barrier.h in the kernel sources use dsb, is this * a case like for arm32 where we do things differently in userspace?
*/
/* * Kernel uses dmb variants on arm64 for smp_*() barriers. Pretty much the same * implementation as above mb()/wmb()/rmb(), though for the latter kernel uses * dsb. In any case, should above mb()/wmb()/rmb() change, make sure the below * smp_*() don't.
*/ #define smp_mb() asmvolatile("dmb ish" ::: "memory") #define smp_wmb() asmvolatile("dmb ishst" ::: "memory") #define smp_rmb() asmvolatile("dmb ishld" ::: "memory")
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.