X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ia32rtools.git;a=blobdiff_plain;f=c_auto.h;h=8ae2eeebd1de5f20602f3919683350befa36b8e8;hp=b3b1afc162ae2f8ca249f1c144d6bbabe36f2708;hb=193c11bf19ed55fc1af7a849383ad6912f08ad0a;hpb=f9d7b4610c82104c07202a6557bae7228e45c6ca 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