mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00: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:
parent
6091dde0d3
commit
fdc1d96dc1
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue