mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
Fixed irq level assertations (assert -> assert_irql).
svn path=/trunk/; revision=569
This commit is contained in:
parent
56b4626f56
commit
7f7c26ae4d
3 changed files with 18 additions and 18 deletions
|
@ -49,7 +49,7 @@ VOID IoAllocateController(PCONTROLLER_OBJECT ControllerObject,
|
||||||
PCONTROLLER_QUEUE_ENTRY entry;
|
PCONTROLLER_QUEUE_ENTRY entry;
|
||||||
IO_ALLOCATION_ACTION Result;
|
IO_ALLOCATION_ACTION Result;
|
||||||
|
|
||||||
assert(KeGetCurrentIrql()==DISPATCH_LEVEL);
|
assert_irql(DISPATCH_LEVEL);
|
||||||
|
|
||||||
entry=ExAllocatePool(NonPagedPool,sizeof(CONTROLLER_QUEUE_ENTRY));
|
entry=ExAllocatePool(NonPagedPool,sizeof(CONTROLLER_QUEUE_ENTRY));
|
||||||
assert(entry!=NULL);
|
assert(entry!=NULL);
|
||||||
|
@ -81,7 +81,7 @@ PCONTROLLER_OBJECT IoCreateController(ULONG Size)
|
||||||
{
|
{
|
||||||
PCONTROLLER_OBJECT controller;
|
PCONTROLLER_OBJECT controller;
|
||||||
|
|
||||||
assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
|
assert_irql(PASSIVE_LEVEL);
|
||||||
|
|
||||||
controller = ExAllocatePool(NonPagedPool,sizeof(CONTROLLER_OBJECT));
|
controller = ExAllocatePool(NonPagedPool,sizeof(CONTROLLER_OBJECT));
|
||||||
if (controller==NULL)
|
if (controller==NULL)
|
||||||
|
@ -107,7 +107,7 @@ VOID IoDeleteController(PCONTROLLER_OBJECT ControllerObject)
|
||||||
* ControllerObject = Controller object to be released
|
* ControllerObject = Controller object to be released
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
|
assert_irql(PASSIVE_LEVEL);
|
||||||
|
|
||||||
ExFreePool(ControllerObject->ControllerExtension);
|
ExFreePool(ControllerObject->ControllerExtension);
|
||||||
ExFreePool(ControllerObject);
|
ExFreePool(ControllerObject);
|
||||||
|
|
|
@ -51,13 +51,15 @@ NtDeviceIoControlFile (
|
||||||
PIO_STACK_LOCATION StackPtr;
|
PIO_STACK_LOCATION StackPtr;
|
||||||
KEVENT KEvent;
|
KEVENT KEvent;
|
||||||
|
|
||||||
assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
|
assert_irql(PASSIVE_LEVEL);
|
||||||
|
|
||||||
DPRINT("NtDeviceIoControlFile(DeviceHandle %x Event %x UserApcRoutine %x "
|
DPRINT("NtDeviceIoControlFile(DeviceHandle %x Event %x UserApcRoutine %x "
|
||||||
"UserApcContext %x IoStatusBlock %x InputBuffer %x "
|
"UserApcContext %x IoStatusBlock %x IoControlCode %x "
|
||||||
"InputBufferSize %x OutputBuffer %x OutputBufferSize %x)\n",
|
"InputBuffer %x InputBufferSize %x OutputBuffer %x "
|
||||||
|
"OutputBufferSize %x)\n",
|
||||||
DeviceHandle,Event,UserApcRoutine,UserApcContext,IoStatusBlock,
|
DeviceHandle,Event,UserApcRoutine,UserApcContext,IoStatusBlock,
|
||||||
InputBuffer,InputBufferSize,OutputBuffer,OutputBufferSize);
|
IoControlCode,InputBuffer,InputBufferSize,OutputBuffer,
|
||||||
|
OutputBufferSize);
|
||||||
|
|
||||||
Status = ObReferenceObjectByHandle(DeviceHandle,
|
Status = ObReferenceObjectByHandle(DeviceHandle,
|
||||||
FILE_READ_DATA | FILE_WRITE_DATA,
|
FILE_READ_DATA | FILE_WRITE_DATA,
|
||||||
|
@ -100,4 +102,3 @@ NtDeviceIoControlFile (
|
||||||
return(Status);
|
return(Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ void KeDrainDpcQueue(void)
|
||||||
PKDPC current;
|
PKDPC current;
|
||||||
KIRQL oldlvl;
|
KIRQL oldlvl;
|
||||||
|
|
||||||
assert(KeGetCurrentIrql() == DISPATCH_LEVEL);
|
assert_irql(DISPATCH_LEVEL);
|
||||||
|
|
||||||
if (DpcQueueSize == 0)
|
if (DpcQueueSize == 0)
|
||||||
{
|
{
|
||||||
|
@ -146,4 +146,3 @@ void KeInitDpc(void)
|
||||||
InitializeListHead(&DpcQueueHead);
|
InitializeListHead(&DpcQueueHead);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue