Author: tkreuzer
Date: Fri Aug 19 15:00:52 2011
New Revision: 53314
URL:
http://svn.reactos.org/svn/reactos?rev=53314&view=rev
Log:
[INTRIN]
- Use fixed inlined version of __invlpg only on x86
Modified:
trunk/reactos/include/crt/msc/intrin.h
Modified: trunk/reactos/include/crt/msc/intrin.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/msc/intrin.h?r…
==============================================================================
--- trunk/reactos/include/crt/msc/intrin.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/msc/intrin.h [iso-8859-1] Fri Aug 19 15:00:52 2011
@@ -308,6 +308,7 @@
void __invlpg(void * const Address);
#pragma intrinsic(__invlpg)
+#ifdef _M_IX86
// This intrinsic is broken and generates wrong opcodes,
// when optimization is enabled!
#pragma warning(push)
@@ -324,6 +325,7 @@
}
#pragma warning(pop)
#define __invlpg __invlpg_fixed
+#endif
/*** System operations ***/
unsigned __int64 __readmsr(const int reg);