diff --git a/reactos/ntoskrnl/ke/i386/exp.c b/reactos/ntoskrnl/ke/i386/exp.c index 466d9a5b8f2..3ff1d31db80 100644 --- a/reactos/ntoskrnl/ke/i386/exp.c +++ b/reactos/ntoskrnl/ke/i386/exp.c @@ -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, diff --git a/reactos/ntoskrnl/ke/i386/kernel.c b/reactos/ntoskrnl/ke/i386/kernel.c index 238bb39b7de..0268a7ee42a 100644 --- a/reactos/ntoskrnl/ke/i386/kernel.c +++ b/reactos/ntoskrnl/ke/i386/kernel.c @@ -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