[HAL] Convert HalpEndSoftwareInterrupt2 to fastcall. CORE-14076

This commit is contained in:
Thomas Faber 2018-02-11 11:33:16 +01:00
parent b56193a27c
commit 040d78354e
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
2 changed files with 7 additions and 6 deletions

View file

@ -11,7 +11,7 @@
#include <ks386.inc> #include <ks386.inc>
EXTERN _HalpEndSoftwareInterrupt2@8:PROC EXTERN @HalpEndSoftwareInterrupt2@8:PROC
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/
@ -26,9 +26,9 @@ PUBLIC _HalpEndSoftwareInterrupt@8
FPO 0, 2, 0, 0, 0, FRAME_FPO FPO 0, 2, 0, 0, 0, FRAME_FPO
/* Call the C function with the same arguments we got */ /* Call the C function with the same arguments we got */
push [esp+8] mov ecx, [esp+4]
push [esp+8] mov edx, [esp+8]
call _HalpEndSoftwareInterrupt2@8 call @HalpEndSoftwareInterrupt2@8
/* Check if we got a pointer back */ /* Check if we got a pointer back */
test eax, eax test eax, eax
@ -39,7 +39,8 @@ PUBLIC _HalpEndSoftwareInterrupt@8
CallIntHandler: CallIntHandler:
/* We got a pointer to call. Since it won't return, free up our stack /* We got a pointer to call. Since it won't return, free up our stack
space, or we could end up with some nasty deep recursion */ space. Otherwise we could end up with some nasty deep recursion.
The next function takes the trap frame as its (fastcall) argument. */
mov ecx, [esp+8] mov ecx, [esp+8]
add esp, 12 add esp, 12
jmp eax jmp eax

View file

@ -677,7 +677,7 @@ HalClearSoftwareInterrupt(IN KIRQL Irql)
} }
PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY
NTAPI FASTCALL
HalpEndSoftwareInterrupt2(IN KIRQL OldIrql, HalpEndSoftwareInterrupt2(IN KIRQL OldIrql,
IN PKTRAP_FRAME TrapFrame) IN PKTRAP_FRAME TrapFrame)
{ {