[ros-diffs] [tkreuzer] 53314: [INTRIN] - Use fixed inlined version of __invlpg only on x86

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Aug 19 15:00:53 UTC 2011


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?rev=53314&r1=53313&r2=53314&view=diff
==============================================================================
--- 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);




More information about the Ros-diffs mailing list