From af32d444fac533e37db96ed65a9c5b394b1992b6 Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Tue, 23 Nov 2010 16:36:24 +0000 Subject: [PATCH] [PSDK]: Add missing DbgRaiseAssertionFailure inline to winnt.h header. svn path=/trunk/; revision=49731 --- reactos/include/psdk/winnt.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reactos/include/psdk/winnt.h b/reactos/include/psdk/winnt.h index 7b2070948a5..07b0f570d91 100644 --- a/reactos/include/psdk/winnt.h +++ b/reactos/include/psdk/winnt.h @@ -5265,12 +5265,24 @@ MemoryBarrier(VOID) #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"); +#define __int2c() __asm__ __volatile__("int $0x2c"); #endif + + +FORCEINLINE +VOID +DbgRaiseAssertionFailure(VOID) +{ + __int2c(); +} + #elif defined (_M_AMD64) #ifdef _MSC_VER #pragma intrinsic(_mm_pause)