[ros-diffs] [tkreuzer] 49628: [INTRIN] Add a workaround for __readcr4, MSVC suffers an internal error when using the intrinsic and optimization is on.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Nov 19 13:55:58 UTC 2010


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/intrin.h?rev=49628&r1=49627&r2=49628&view=diff
==============================================================================
--- 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




More information about the Ros-diffs mailing list