mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 11:33:35 +00:00
[HAL]: Kill debug spew.
svn path=/trunk/; revision=47653
This commit is contained in:
parent
e91cc9349b
commit
e2d5c9d92b
1 changed files with 5 additions and 8 deletions
|
@ -215,13 +215,11 @@ HaliRegisterBusHandler(IN INTERFACE_TYPE InterfaceType,
|
||||||
{
|
{
|
||||||
PHAL_BUS_HANDLER Bus, OldHandler = NULL;
|
PHAL_BUS_HANDLER Bus, OldHandler = NULL;
|
||||||
PHAL_BUS_HANDLER* BusEntry;
|
PHAL_BUS_HANDLER* BusEntry;
|
||||||
PVOID CodeHandle;
|
//PVOID CodeHandle;
|
||||||
PARRAY InterfaceArray, InterfaceBusNumberArray, ConfigArray, ConfigBusNumberArray;
|
PARRAY InterfaceArray, InterfaceBusNumberArray, ConfigArray, ConfigBusNumberArray;
|
||||||
PBUS_HANDLER ParentHandler;
|
PBUS_HANDLER ParentHandler;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
DPRINT1("HAL BUS REGISTRATION: %d.%d on bus %d with parent %d on bus %d\n",
|
|
||||||
InterfaceType, ConfigType, BusNumber, ParentBusType, ParentBusNumber);
|
|
||||||
|
|
||||||
/* Make sure we have a valid handler */
|
/* Make sure we have a valid handler */
|
||||||
ASSERT((InterfaceType != InterfaceTypeUndefined) ||
|
ASSERT((InterfaceType != InterfaceTypeUndefined) ||
|
||||||
|
@ -236,8 +234,8 @@ HaliRegisterBusHandler(IN INTERFACE_TYPE InterfaceType,
|
||||||
/* Return the handler */
|
/* Return the handler */
|
||||||
*ReturnedBusHandler = &Bus->Handler;
|
*ReturnedBusHandler = &Bus->Handler;
|
||||||
|
|
||||||
/* Don't page us out */
|
/* FIXME: Fix the kernel first. Don't page us out */
|
||||||
CodeHandle = MmLockPagableDataSection(&HaliRegisterBusHandler);
|
//CodeHandle = MmLockPagableDataSection(&HaliRegisterBusHandler);
|
||||||
|
|
||||||
/* Synchronize with anyone else */
|
/* Synchronize with anyone else */
|
||||||
KeWaitForSingleObject(&HalpBusDatabaseEvent,
|
KeWaitForSingleObject(&HalpBusDatabaseEvent,
|
||||||
|
@ -367,8 +365,8 @@ HaliRegisterBusHandler(IN INTERFACE_TYPE InterfaceType,
|
||||||
/* Signal the event */
|
/* Signal the event */
|
||||||
KeSetEvent(&HalpBusDatabaseEvent, 0, FALSE);
|
KeSetEvent(&HalpBusDatabaseEvent, 0, FALSE);
|
||||||
|
|
||||||
/* Re-page the function */
|
/* FIXME: Fix the kernel first. Re-page the function */
|
||||||
MmUnlockPagableImageSection(CodeHandle);
|
//MmUnlockPagableImageSection(CodeHandle);
|
||||||
|
|
||||||
/* Free all allocations */
|
/* Free all allocations */
|
||||||
if (Bus) ExFreePool(Bus);
|
if (Bus) ExFreePool(Bus);
|
||||||
|
@ -378,7 +376,6 @@ HaliRegisterBusHandler(IN INTERFACE_TYPE InterfaceType,
|
||||||
if (ConfigBusNumberArray) ExFreePool(ConfigBusNumberArray);
|
if (ConfigBusNumberArray) ExFreePool(ConfigBusNumberArray);
|
||||||
|
|
||||||
/* And we're done */
|
/* And we're done */
|
||||||
DPRINT1("Bus handler has been registered: %p\n", *ReturnedBusHandler);
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue