Author: tkreuzer
Date: Sun Aug 28 12:40:55 2011
New Revision: 53479
URL:
http://svn.reactos.org/svn/reactos?rev=53479&view=rev
Log:
[INTRIN]
Add missing memory barriers to _enable, _disable and __halt
Modified:
trunk/reactos/include/crt/mingw32/intrin_x86.h
Modified: trunk/reactos/include/crt/mingw32/intrin_x86.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin…
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] Sun Aug 28 12:40:55 2011
@@ -1216,17 +1216,17 @@
__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 ***/