- Convert remaining KEBUGCHECK to KeBugCheck.

- Add HAL_MEMORY_ALLOCATION bug code and use it.

svn path=/trunk/; revision=43282
This commit is contained in:
Stefan Ginsberg 2009-10-04 14:48:18 +00:00
parent eb721653ab
commit f0c0e70c05
8 changed files with 22 additions and 18 deletions

View file

@ -120,7 +120,7 @@ VOID
NTAPI
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
KEBUGCHECK(0);
KeBugCheck(0);
return;
}
@ -131,7 +131,7 @@ VOID
NTAPI
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
KEBUGCHECK(0);
KeBugCheck(0);
return;
}
@ -142,7 +142,7 @@ ULONG_PTR
NTAPI
HalSetProfileInterval(IN ULONG_PTR Interval)
{
KEBUGCHECK(0);
KeBugCheck(0);
return Interval;
}

View file

@ -222,7 +222,7 @@ HalGetBusDataByOffset(IN BUS_DATA_TYPE BusDataType,
else if (BusDataType == EisaConfiguration)
{
/* FIXME: TODO */
KEBUGCHECK(0);
KeBugCheck(0);
}
else if ((BusDataType == PCIConfiguration) &&
(HalpPCIConfigInitialized) &&

View file

@ -1485,9 +1485,7 @@ HalpCopyBufferMap(
* NOTE: On real NT a mechanism with reserved pages is implemented
* to handle this case in a slow, but graceful non-fatal way.
*/
/* FIXME: The correct bug check code isn't defined. */
/* KEBUGCHECKEX(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0); */
KEBUGCHECK(0);
KeBugCheckEx(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0);
}
CurrentAddress = (ULONG_PTR)VirtualAddress +

View file

@ -216,7 +216,7 @@ KfLowerIrql (KIRQL NewIrql)
{
DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
__FILE__, __LINE__, NewIrql, KeGetPcr()->Irql);
KEBUGCHECK(0);
KeBugCheck(0);
for(;;);
}
@ -251,7 +251,7 @@ KfRaiseIrql (KIRQL NewIrql)
{
DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
__FILE__,__LINE__,KeGetPcr()->Irql,NewIrql);
KEBUGCHECK (0);
KeBugCheck (0);
for(;;);
}
@ -424,7 +424,7 @@ HalRequestSoftwareInterrupt(
break;
default:
KEBUGCHECK(0);
KeBugCheck(0);
}
}
@ -443,7 +443,7 @@ HalClearSoftwareInterrupt(
break;
default:
KEBUGCHECK(0);
KeBugCheck(0);
}
}

View file

@ -496,7 +496,7 @@ HalpAssignPCISlotResources(IN PBUS_HANDLER BusHandler,
IN ULONG Slot,
IN OUT PCM_RESOURCE_LIST *pAllocatedResources)
{
KEBUGCHECK(0);
KeBugCheck(0);
return STATUS_SUCCESS;
}

View file

@ -21,7 +21,7 @@ VOID
NTAPI
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
KEBUGCHECK(0);
KeBugCheck(0);
return;
}
@ -32,7 +32,7 @@ VOID
NTAPI
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
KEBUGCHECK(0);
KeBugCheck(0);
return;
}
@ -43,7 +43,7 @@ ULONG_PTR
NTAPI
HalSetProfileInterval(IN ULONG_PTR Interval)
{
KEBUGCHECK(0);
KeBugCheck(0);
return Interval;
}

View file

@ -1487,9 +1487,7 @@ HalpCopyBufferMap(
* NOTE: On real NT a mechanism with reserved pages is implemented
* to handle this case in a slow, but graceful non-fatal way.
*/
/* FIXME: The correct bug check code isn't defined. */
/* KEBUGCHECKEX(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0); */
ASSERT(FALSE);
KeBugCheckEx(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0);
}
CurrentAddress = (ULONG_PTR)VirtualAddress +

View file

@ -1168,6 +1168,14 @@ Language=English
The system is booting in safemode - Directory Services Repair
.
MessageId=0xAC
Severity=Success
Facility=System
SymbolicName=HAL_MEMORY_ALLOCATION
Language=English
HAL_MEMORY_ALLOCATION
.
MessageId=0xB4
Severity=Success
Facility=System