mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Make compatible w/both MinGW and MSVC
svn path=/trunk/; revision=7353
This commit is contained in:
parent
ac110a4500
commit
a755da6416
2 changed files with 14 additions and 2 deletions
|
@ -554,7 +554,13 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
|
|||
{
|
||||
if (Tf->Eflags & FLAG_IF)
|
||||
{
|
||||
#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,
|
||||
|
|
|
@ -93,7 +93,13 @@ KeApplicationProcessorInit(VOID)
|
|||
*/
|
||||
Ki386InitializeLdt();
|
||||
|
||||
#ifdef __GNUC__
|
||||
__asm__ __volatile__ ("sti\n\t");
|
||||
#elif defined(_MSC_VER)
|
||||
__asm sti
|
||||
#else
|
||||
#error Unknown compiler for inline assembler
|
||||
#endif
|
||||
}
|
||||
|
||||
VOID INIT_FUNCTION
|
||||
|
|
Loading…
Reference in a new issue