From: Timo Kreuzer Date: Sun, 28 Aug 2011 12:40:55 +0000 (+0000) Subject: [INTRIN] X-Git-Tag: backups/GSoC_2011/KMTestSuite@60644~6^2~80 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b0113540308655973872b9d30a22adc76a0daed4 [INTRIN] Add missing memory barriers to _enable, _disable and __halt svn path=/trunk/; revision=53479 --- diff --git a/reactos/include/crt/mingw32/intrin_x86.h b/reactos/include/crt/mingw32/intrin_x86.h index 36c1005e2bb..87851925b8a 100644 --- a/reactos/include/crt/mingw32/intrin_x86.h +++ b/reactos/include/crt/mingw32/intrin_x86.h @@ -1216,17 +1216,17 @@ __INTRIN_INLINE void __int2c(void) __INTRIN_INLINE void _disable(void) { - __asm__("cli"); + __asm__("cli" : : : "memory"); } __INTRIN_INLINE void _enable(void) { - __asm__("sti"); + __asm__("sti" : : : "memory"); } __INTRIN_INLINE void __halt(void) { - __asm__("hlt\n\t"); + __asm__("hlt\n\t" : : : "memory"); } /*** Protected memory management ***/