Author: tkreuzer
Date: Fri Nov 19 13:55:58 2010
New Revision: 49628
URL:
http://svn.reactos.org/svn/reactos?rev=49628&view=rev
Log:
[INTRIN]
Add a workaround for __readcr4, MSVC suffers an internal error when using the intrinsic
and optimization is on.
Modified:
branches/cmake-bringup/include/crt/msc/intrin.h
Modified: branches/cmake-bringup/include/crt/msc/intrin.h
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/msc/i…
==============================================================================
--- branches/cmake-bringup/include/crt/msc/intrin.h [iso-8859-1] (original)
+++ branches/cmake-bringup/include/crt/msc/intrin.h [iso-8859-1] Fri Nov 19 13:55:58 2010
@@ -283,7 +283,12 @@
unsigned long __readcr0(void);
unsigned long __readcr2(void);
unsigned long __readcr3(void);
-unsigned long __readcr4(void);
+//unsigned long __readcr4(void);
+//#pragma intrinsic(__readcr4)
+// HACK: MSVC is broken
+unsigned long ___readcr4(void);
+#define __readcr4 ___readcr4
+
unsigned int __readdr(unsigned int reg);
void __writedr(unsigned reg, unsigned int value);
#endif