[NTOS:KE/x64] Remove pointless loop in KiInitiateUserApc

Only one user APC can be delivered here. The next one can only be delivered, when KiUserApcDispatcher returns to the previous context with NtContinue.
This commit is contained in:
Timo Kreuzer 2024-04-02 23:05:26 +03:00
parent 7589238b68
commit 713a360c74

View file

@ -1184,8 +1184,6 @@ PUBLIC KiInitiateUserApc
/* Save the trap frame in rsi */
mov rsi, rcx
deliver_apcs:
/* Enable interrupts */
sti
@ -1198,10 +1196,6 @@ deliver_apcs:
/* Disable interrupts again */
cli
/* Check if there are more APCs to deliver */
cmp byte ptr [rbp + ThApcState + AsUserApcPending], 0
jne deliver_apcs
/* Go back to PASSIVE_LEVEL */
mov rax, PASSIVE_LEVEL
mov cr8, rax