From 848b80b4053e243b58618c2d3ae31094f94f7ac5 Mon Sep 17 00:00:00 2001 From: Gunnar Dalsnes Date: Mon, 19 Jan 2004 00:44:37 +0000 Subject: [PATCH] KiAcquire/ReleaseSpinLock adaption svn path=/trunk/; revision=7766 --- reactos/ntoskrnl/ke/apc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/ke/apc.c b/reactos/ntoskrnl/ke/apc.c index de7e89d7b19..e8baa4e9bba 100644 --- a/reactos/ntoskrnl/ke/apc.c +++ b/reactos/ntoskrnl/ke/apc.c @@ -435,10 +435,11 @@ KeRemoveQueueApc (PKAPC Apc) PKTHREAD TargetThread; KeRaiseIrql(HIGH_LEVEL, &oldIrql); - KeAcquireSpinLockAtDpcLevel(&PiApcLock); + KiAcquireSpinLock(&PiApcLock); if (Apc->Inserted == FALSE) { - KeReleaseSpinLock(&PiApcLock, oldIrql); + KiReleaseSpinLock(&PiApcLock); + KeLowerIrql(oldIrql); return(FALSE); } @@ -454,7 +455,8 @@ KeRemoveQueueApc (PKAPC Apc) } Apc->Inserted = FALSE; - KeReleaseSpinLock(&PiApcLock, oldIrql); + KiReleaseSpinLock(&PiApcLock); + KeLowerIrql(oldIrql); return(TRUE); }