[ros-diffs] [sir_richard] 49731: [PSDK]: Add missing DbgRaiseAssertionFailure inline to winnt.h header.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Tue Nov 23 16:36:24 UTC 2010


Author: sir_richard
Date: Tue Nov 23 16:36:24 2010
New Revision: 49731

URL: http://svn.reactos.org/svn/reactos?rev=49731&view=rev
Log:
[PSDK]: Add missing DbgRaiseAssertionFailure inline to winnt.h header.

Modified:
    trunk/reactos/include/psdk/winnt.h

Modified: trunk/reactos/include/psdk/winnt.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=49731&r1=49730&r2=49731&view=diff
==============================================================================
--- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Tue Nov 23 16:36:24 2010
@@ -5265,12 +5265,24 @@
 #endif
 
 #if defined(_M_IX86)
+
 #ifdef _MSC_VER
+#pragma intrinsic(__int2c)
 #pragma intrinsic(_mm_pause)
 #define YieldProcessor _mm_pause
 #else
 #define YieldProcessor() __asm__ __volatile__("pause");
-#endif
+#define __int2c() __asm__ __volatile__("int $0x2c");
+#endif
+
+
+FORCEINLINE
+VOID
+DbgRaiseAssertionFailure(VOID)
+{
+    __int2c();
+}
+
 #elif defined (_M_AMD64)
 #ifdef _MSC_VER
 #pragma intrinsic(_mm_pause)




More information about the Ros-diffs mailing list