X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=c_auto.h;h=8ae2eeebd1de5f20602f3919683350befa36b8e8;hb=53b50c908bc9c910d3ab8130f8b0e668121918ec;hp=b3b1afc162ae2f8ca249f1c144d6bbabe36f2708;hpb=1fe8d40ebdb232ab6be27af1a3b94a2869cc3779;p=ia32rtools.git diff --git a/c_auto.h b/c_auto.h index b3b1afc..8ae2eee 100644 --- a/c_auto.h +++ b/c_auto.h @@ -63,4 +63,7 @@ static inline int do_parity(unsigned int v) printf("%s:%d: skip_code_abort\n", __FILE__, __LINE__); \ *(volatile int *)0 = 1 +#define barrier() \ + asm volatile("" ::: "memory") + // vim:ts=2:sw=2:expandtab