mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 09:23:04 +08:00
[ISAPNP] Make sure that APCs are disabled before acquiring a lock
Note: We could just use a fast mutex instead
This commit is contained in:
@@ -111,6 +111,8 @@ FORCEINLINE
|
||||
VOID
|
||||
IsaPnpAcquireBusDataLock(VOID)
|
||||
{
|
||||
ASSERT(PsGetCurrentProcess() == PsInitialSystemProcess);
|
||||
|
||||
KeWaitForSingleObject(&BusSyncEvent, Executive, KernelMode, FALSE, NULL);
|
||||
}
|
||||
|
||||
@@ -129,6 +131,8 @@ VOID
|
||||
IsaPnpAcquireDeviceDataLock(
|
||||
_In_ PISAPNP_FDO_EXTENSION FdoExt)
|
||||
{
|
||||
ASSERT(PsGetCurrentProcess() == PsInitialSystemProcess);
|
||||
|
||||
KeWaitForSingleObject(&FdoExt->DeviceSyncEvent, Executive, KernelMode, FALSE, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user