Fixed irq level assertations (assert -> assert_irql).

svn path=/trunk/; revision=569
This commit is contained in:
Eric Kohl 1999-06-27 13:01:23 +00:00
parent 56b4626f56
commit 7f7c26ae4d
3 changed files with 18 additions and 18 deletions

View file

@ -49,7 +49,7 @@ VOID IoAllocateController(PCONTROLLER_OBJECT ControllerObject,
PCONTROLLER_QUEUE_ENTRY entry;
IO_ALLOCATION_ACTION Result;
assert(KeGetCurrentIrql()==DISPATCH_LEVEL);
assert_irql(DISPATCH_LEVEL);
entry=ExAllocatePool(NonPagedPool,sizeof(CONTROLLER_QUEUE_ENTRY));
assert(entry!=NULL);
@ -81,7 +81,7 @@ PCONTROLLER_OBJECT IoCreateController(ULONG Size)
{
PCONTROLLER_OBJECT controller;
assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
assert_irql(PASSIVE_LEVEL);
controller = ExAllocatePool(NonPagedPool,sizeof(CONTROLLER_OBJECT));
if (controller==NULL)
@ -107,7 +107,7 @@ VOID IoDeleteController(PCONTROLLER_OBJECT ControllerObject)
* ControllerObject = Controller object to be released
*/
{
assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
assert_irql(PASSIVE_LEVEL);
ExFreePool(ControllerObject->ControllerExtension);
ExFreePool(ControllerObject);

View file

@ -51,13 +51,15 @@ NtDeviceIoControlFile (
PIO_STACK_LOCATION StackPtr;
KEVENT KEvent;
assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
assert_irql(PASSIVE_LEVEL);
DPRINT("NtDeviceIoControlFile(DeviceHandle %x Event %x UserApcRoutine %x "
"UserApcContext %x IoStatusBlock %x InputBuffer %x "
"InputBufferSize %x OutputBuffer %x OutputBufferSize %x)\n",
"UserApcContext %x IoStatusBlock %x IoControlCode %x "
"InputBuffer %x InputBufferSize %x OutputBuffer %x "
"OutputBufferSize %x)\n",
DeviceHandle,Event,UserApcRoutine,UserApcContext,IoStatusBlock,
InputBuffer,InputBufferSize,OutputBuffer,OutputBufferSize);
IoControlCode,InputBuffer,InputBufferSize,OutputBuffer,
OutputBufferSize);
Status = ObReferenceObjectByHandle(DeviceHandle,
FILE_READ_DATA | FILE_WRITE_DATA,
@ -100,4 +102,3 @@ NtDeviceIoControlFile (
return(Status);
}

View file

@ -55,7 +55,7 @@ void KeDrainDpcQueue(void)
PKDPC current;
KIRQL oldlvl;
assert(KeGetCurrentIrql() == DISPATCH_LEVEL);
assert_irql(DISPATCH_LEVEL);
if (DpcQueueSize == 0)
{
@ -146,4 +146,3 @@ void KeInitDpc(void)
InitializeListHead(&DpcQueueHead);
}