X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fthreads%2Fsynch.h;h=9e464e3876400f60fafbc44a105f859ffd4b6938;hp=6b8f550e8798f6b9b916cf15ce8ec72861e283a8;hb=6d19139b337fcb7c9b31e5b6724e6ae19499e4c5;hpb=0b55933faeb90e4953f33a7e382c6f475d9befd7 diff --git a/src/threads/synch.h b/src/threads/synch.h index 6b8f550..9e464e3 100644 --- a/src/threads/synch.h +++ b/src/threads/synch.h @@ -45,6 +45,6 @@ void cond_broadcast (struct condition *, struct lock *); The compiler will not reorder operations across an optimization barrier. */ -#define barrier() asm volatile ("") +#define barrier() asm volatile ("" : : : "memory") #endif /* threads/synch.h */