[HAL]: Mark ECX as clobbered in HalpNestedTrap, otherwise if the compiler decides to store IRQL in ECX, it will then be overriden with our ECX parameter. With this clobber, the compiler will use another register, such as EAX, to hold the IRQL.

svn path=/trunk/; revision=45316
This commit is contained in:
Sir Richard 2010-01-29 08:14:51 +00:00
parent 4fa5e49fa3
commit 38668a867a

View file

@ -128,7 +128,7 @@ HalpNestedTrap(IN KIRQL PendingIrql)
:
: "im"(SWInterruptHandlerTable2[PendingIrql]),
[t] "i"(&PCR->VdmAlert)
: "%esp"
: "%esp","%ecx"
);
UNREACHABLE;
}
@ -560,6 +560,7 @@ HalpEnableInterruptHandler(IN UCHAR Flags,
VOID NTAPI HalpInitializePICs(IN BOOLEAN EnableInterrupts);
VOID HalpApcInterrupt(VOID);
VOID HalpDispatchInterrupt(VOID);
VOID HalpDispatchInterrupt2(VOID);
VOID FASTCALL HalpApcInterrupt2ndEntry(IN PKTRAP_FRAME TrapFrame);
VOID FASTCALL HalpDispatchInterrupt2ndEntry(IN PKTRAP_FRAME TrapFrame);