From 4635919140342df141aeeeb46e2c56322d9c417f Mon Sep 17 00:00:00 2001 From: Gunnar Dalsnes Date: Sun, 21 Nov 2004 18:37:56 +0000 Subject: [PATCH] call KiDeliverAPc at correct irql svn path=/trunk/; revision=11756 --- reactos/ntoskrnl/mm/i386/pfault.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/ntoskrnl/mm/i386/pfault.c b/reactos/ntoskrnl/mm/i386/pfault.c index dc868c9b7e0..7cae01a078a 100644 --- a/reactos/ntoskrnl/mm/i386/pfault.c +++ b/reactos/ntoskrnl/mm/i386/pfault.c @@ -68,7 +68,11 @@ NTSTATUS MmPageFault(ULONG Cs, KeGetCurrentThread()->Alerted[UserMode] != 0 && Cs != KERNEL_CS) { + KIRQL oldIrql; + + KeRaiseIrql(APC_LEVEL, &oldIrql); KiDeliverApc(KernelMode, NULL, NULL); + KeLowerIrql(oldIrql); } if (!NT_SUCCESS(Status) && (Mode == KernelMode) && ((*Eip) >= (ULONG)MmSafeCopyFromUserUnsafeStart) &&