Make compatible w/both MinGW and MSVC

svn path=/trunk/; revision=7353
This commit is contained in:
Aleksey Bragin 2003-12-30 22:33:32 +00:00
parent ac110a4500
commit a755da6416
2 changed files with 14 additions and 2 deletions

View file

@ -554,7 +554,13 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
{
if (Tf->Eflags & FLAG_IF)
{
__asm__("sti\n\t");
#ifdef __GNUC__
__asm__("sti\n\t");
#elif defined(_MSC_VER)
__asm sti
#else
#error Unknown compiler for inline assembler
#endif
}
Status = MmPageFault(Tf->Cs&0xffff,
&Tf->Eip,

View file

@ -93,7 +93,13 @@ KeApplicationProcessorInit(VOID)
*/
Ki386InitializeLdt();
__asm__ __volatile__ ("sti\n\t");
#ifdef __GNUC__
__asm__ __volatile__ ("sti\n\t");
#elif defined(_MSC_VER)
__asm sti
#else
#error Unknown compiler for inline assembler
#endif
}
VOID INIT_FUNCTION