mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 15:07:53 +00:00
- Don't use KeBugCheck(0) -- 0 is an invalid bugcode. Use a proper bugcode, DbgBreakPoint or UNIMPLEMENTED instead depending on how the old call was used.
- Remove some unused and deprecated macros from the network stack that did this. - fastfat_new: Use FAT_FILE_SYSTEM instead of magic 0x23. svn path=/trunk/; revision=43673
This commit is contained in:
parent
f2e66d0408
commit
3a16c5a061
|
@ -81,7 +81,7 @@ vfatInitFcb(PVFATFCB Fcb, PUNICODE_STRING NameU)
|
||||||
{
|
{
|
||||||
/* FIXME: what to do if no more memory? */
|
/* FIXME: what to do if no more memory? */
|
||||||
DPRINT1("Unable to initialize FCB for filename '%wZ'\n", NameU);
|
DPRINT1("Unable to initialize FCB for filename '%wZ'\n", NameU);
|
||||||
KeBugCheckEx(0, (ULONG_PTR)Fcb, (ULONG_PTR)NameU, 0, 0);
|
KeBugCheckEx(FAT_FILE_SYSTEM, (ULONG_PTR)Fcb, (ULONG_PTR)NameU, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Fcb->PathNameU.Length = 0;
|
Fcb->PathNameU.Length = 0;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <ntifs.h>
|
#include <ntifs.h>
|
||||||
|
#include <bugcodes.h>
|
||||||
#include <ntdddisk.h>
|
#include <ntdddisk.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
|
@ -895,7 +895,7 @@ FatiCreate(IN PFAT_IRP_CONTEXT IrpContext,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Unexpected FCB type */
|
/* Unexpected FCB type */
|
||||||
KeBugCheckEx(/*FAT_FILE_SYSTEM*/0x23, __LINE__, (ULONG_PTR)Fcb, 0, 0);
|
KeBugCheckEx(FAT_FILE_SYSTEM, __LINE__, (ULONG_PTR)Fcb, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <ntifs.h>
|
#include <ntifs.h>
|
||||||
|
#include <bugcodes.h>
|
||||||
#include <ntdddisk.h>
|
#include <ntdddisk.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <pseh/pseh2.h>
|
#include <pseh/pseh2.h>
|
||||||
|
|
|
@ -389,7 +389,7 @@ FatiOpenExistingFcb(IN PFAT_IRP_CONTEXT IrpContext,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* We can't get here */
|
/* We can't get here */
|
||||||
KeBugCheckEx(0x23, CreateDisposition, 0, 0, 0);
|
KeBugCheckEx(FAT_FILE_SYSTEM, CreateDisposition, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ extern DWORD DebugTraceLevel;
|
||||||
#ifdef NASSERT
|
#ifdef NASSERT
|
||||||
#define ASSERT(x)
|
#define ASSERT(x)
|
||||||
#else /* NASSERT */
|
#else /* NASSERT */
|
||||||
#define ASSERT(x) if (!(x)) { AFD_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
|
#define ASSERT(x) if (!(x)) { AFD_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); DbgBreakPoint(); }
|
||||||
#endif /* NASSERT */
|
#endif /* NASSERT */
|
||||||
|
|
||||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
||||||
|
|
|
@ -43,18 +43,6 @@ extern ULONG DebugTraceLevel;
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
|
|
||||||
/* Assert is defined in ndis.h */
|
|
||||||
#if 0
|
|
||||||
#ifdef ASSERT
|
|
||||||
#undef ASSERT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NASSERT
|
|
||||||
#define ASSERT(x)
|
|
||||||
#else /* NASSERT */
|
|
||||||
#define ASSERT(x) if (!(x)) { NDIS_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
|
|
||||||
#endif /* NASSERT */
|
|
||||||
#endif
|
|
||||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
||||||
#define ASSERT_IRQL_EQUAL(x) ASSERT(KeGetCurrentIrql() == (x))
|
#define ASSERT_IRQL_EQUAL(x) ASSERT(KeGetCurrentIrql() == (x))
|
||||||
|
|
||||||
|
|
|
@ -1001,7 +1001,7 @@ DriverEntry(
|
||||||
if(Status != NDIS_STATUS_SUCCESS)
|
if(Status != NDIS_STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint("ne2000!MiniportInitialize: failed to set DwordTest: 0x%x\n", Status);
|
DbgPrint("ne2000!MiniportInitialize: failed to set DwordTest: 0x%x\n", Status);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgPrint("ne2000!MiniportInitialize: DwordTest successfully set\n");
|
DbgPrint("ne2000!MiniportInitialize: DwordTest successfully set\n");
|
||||||
|
@ -1015,7 +1015,7 @@ DriverEntry(
|
||||||
if(Status != NDIS_STATUS_SUCCESS)
|
if(Status != NDIS_STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint("ne2000!MiniportInitialize: failed to set StringTest: 0x%x\n", Status);
|
DbgPrint("ne2000!MiniportInitialize: failed to set StringTest: 0x%x\n", Status);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgPrint("ne2000!MiniportInitialize: StringTest successfully set\n");
|
DbgPrint("ne2000!MiniportInitialize: StringTest successfully set\n");
|
||||||
|
@ -1031,14 +1031,14 @@ DriverEntry(
|
||||||
if(Status != NDIS_STATUS_SUCCESS)
|
if(Status != NDIS_STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint("ne2000!MiniportInitialize: failed to read DwordTest: 0x%x\n", Status);
|
DbgPrint("ne2000!MiniportInitialize: failed to read DwordTest: 0x%x\n", Status);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ParameterValue->ParameterData.IntegerData != 0x12345678)
|
if(ParameterValue->ParameterData.IntegerData != 0x12345678)
|
||||||
{
|
{
|
||||||
DbgPrint("ne2000!MiniportInitialize: DwordTest value is wrong: 0x%x\n",
|
DbgPrint("ne2000!MiniportInitialize: DwordTest value is wrong: 0x%x\n",
|
||||||
ParameterValue->ParameterData.IntegerData);
|
ParameterValue->ParameterData.IntegerData);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgPrint("ne2000!MiniportInitialize: DwordTest value was correctly read\n");
|
DbgPrint("ne2000!MiniportInitialize: DwordTest value was correctly read\n");
|
||||||
|
@ -1049,7 +1049,7 @@ DriverEntry(
|
||||||
if(Status != NDIS_STATUS_SUCCESS)
|
if(Status != NDIS_STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint("ne2000!MiniportInitialize: failed to read StringTest: 0x%x\n", Status);
|
DbgPrint("ne2000!MiniportInitialize: failed to read StringTest: 0x%x\n", Status);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(wcsncmp(ParameterValue->ParameterData.StringData.Buffer, L"Testing123",
|
if(wcsncmp(ParameterValue->ParameterData.StringData.Buffer, L"Testing123",
|
||||||
|
@ -1057,7 +1057,7 @@ DriverEntry(
|
||||||
{
|
{
|
||||||
DbgPrint("ne2000!MiniportInitialize: StringTest value is wrong: %wZ\n",
|
DbgPrint("ne2000!MiniportInitialize: StringTest value is wrong: %wZ\n",
|
||||||
&ParameterValue->ParameterData.StringData);
|
&ParameterValue->ParameterData.StringData);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgPrint("ne2000!MiniportInitialize: StringTest value was correctly read\n");
|
DbgPrint("ne2000!MiniportInitialize: StringTest value was correctly read\n");
|
||||||
|
|
|
@ -57,18 +57,6 @@ extern DWORD DebugTraceLevel;
|
||||||
|
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifdef ASSERT
|
|
||||||
#undef ASSERT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NASSERT
|
|
||||||
#define ASSERT(x)
|
|
||||||
#else /* NASSERT */
|
|
||||||
#define ASSERT(x) if (!(x)) { LA_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
|
|
||||||
#endif /* NASSERT */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
||||||
|
|
||||||
#else /* DBG */
|
#else /* DBG */
|
||||||
|
|
|
@ -232,7 +232,7 @@ PcRegisterSubdevice(
|
||||||
if (!DeviceExt)
|
if (!DeviceExt)
|
||||||
{
|
{
|
||||||
// should not happen
|
// should not happen
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -715,7 +715,8 @@ CPortPinDMus::Init(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
|
while(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = NewIrpQueue(&m_IrpQueue);
|
Status = NewIrpQueue(&m_IrpQueue);
|
||||||
|
|
|
@ -869,7 +869,8 @@ CPortPinWaveCyclic::Init(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
|
while(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -981,7 +981,8 @@ CPortPinWavePci::Init(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
|
while(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = m_Miniport->NewStream(&m_Stream,
|
Status = m_Miniport->NewStream(&m_Stream,
|
||||||
|
|
|
@ -697,6 +697,7 @@ CPortPinWaveRT::Init(
|
||||||
{
|
{
|
||||||
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
DPRINT("Unexpected Communication %u DataFlow %u\n", KsPinDescriptor->Communication, KsPinDescriptor->DataFlow);
|
||||||
KeBugCheck(0);
|
KeBugCheck(0);
|
||||||
|
while(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = m_Miniport->NewStream(&m_Stream, m_PortStream, ConnectDetails->PinId, Capture, m_Format);
|
Status = m_Miniport->NewStream(&m_Stream, m_PortStream, ConnectDetails->PinId, Capture, m_Format);
|
||||||
|
|
|
@ -212,7 +212,8 @@ PinPropertyHandler(
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed to obtain ISubdevice interface from port driver\n");
|
DPRINT("Failed to obtain ISubdevice interface from port driver\n");
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
|
while(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get current stack location
|
// get current stack location
|
||||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
||||||
{
|
{
|
||||||
// put error handling here
|
// put error handling here
|
||||||
|
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
HalSetProfileInterval(IN ULONG_PTR Interval)
|
HalSetProfileInterval(IN ULONG_PTR Interval)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return Interval;
|
return Interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
HalSetProfileInterval(IN ULONG_PTR Interval)
|
HalSetProfileInterval(IN ULONG_PTR Interval)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return Interval;
|
return Interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -222,7 +222,7 @@ HalGetBusDataByOffset(IN BUS_DATA_TYPE BusDataType,
|
||||||
else if (BusDataType == EisaConfiguration)
|
else if (BusDataType == EisaConfiguration)
|
||||||
{
|
{
|
||||||
/* FIXME: TODO */
|
/* FIXME: TODO */
|
||||||
KeBugCheck(0);
|
ASSERT(FALSE);
|
||||||
}
|
}
|
||||||
else if ((BusDataType == PCIConfiguration) &&
|
else if ((BusDataType == PCIConfiguration) &&
|
||||||
(HalpPCIConfigInitialized) &&
|
(HalpPCIConfigInitialized) &&
|
||||||
|
|
|
@ -216,7 +216,7 @@ KfLowerIrql (KIRQL NewIrql)
|
||||||
{
|
{
|
||||||
DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
|
DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
|
||||||
__FILE__, __LINE__, NewIrql, KeGetPcr()->Irql);
|
__FILE__, __LINE__, NewIrql, KeGetPcr()->Irql);
|
||||||
KeBugCheck(0);
|
KeBugCheck(IRQL_NOT_LESS_OR_EQUAL);
|
||||||
for(;;);
|
for(;;);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ KfRaiseIrql (KIRQL NewIrql)
|
||||||
{
|
{
|
||||||
DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
|
DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
|
||||||
__FILE__,__LINE__,KeGetPcr()->Irql,NewIrql);
|
__FILE__,__LINE__,KeGetPcr()->Irql,NewIrql);
|
||||||
KeBugCheck (0);
|
KeBugCheck (IRQL_NOT_GREATER_OR_EQUAL);
|
||||||
for(;;);
|
for(;;);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -424,7 +424,7 @@ HalRequestSoftwareInterrupt(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ HalClearSoftwareInterrupt(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
HalSetProfileInterval(IN ULONG_PTR Interval)
|
HalSetProfileInterval(IN ULONG_PTR Interval)
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
UNIMPLEMENTED;
|
||||||
return Interval;
|
return Interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ HalpSwitchToRealModeTrapHandlers(VOID)
|
||||||
ULONG Handler;
|
ULONG Handler;
|
||||||
PHARDWARE_PTE IdtPte;
|
PHARDWARE_PTE IdtPte;
|
||||||
|
|
||||||
/* On i586, the first 7 entries of IDT are write-protected, unprotect them. */
|
/* On i586, the first 7 entries of IDT are write-protected, unprotect them. */ // Nasty hto hack
|
||||||
if (KeGetCurrentPrcb()->CpuType == 5)
|
if (KeGetCurrentPrcb()->CpuType == 5)
|
||||||
{
|
{
|
||||||
IdtPte = GetPteAddress(((PKIPCR)KeGetPcr())->IDT);
|
IdtPte = GetPteAddress(((PKIPCR)KeGetPcr())->IDT);
|
||||||
|
@ -197,6 +197,7 @@ HalpUnmapRealModeMemory(VOID)
|
||||||
Pte = GetPteAddress((PVOID)i);
|
Pte = GetPteAddress((PVOID)i);
|
||||||
Pte->Valid = 0;
|
Pte->Valid = 0;
|
||||||
Pte->Write = 0;
|
Pte->Write = 0;
|
||||||
|
//Pte->Owner = 0; // Missing this?
|
||||||
Pte->PageFrameNumber = 0;
|
Pte->PageFrameNumber = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
ASSERT(FALSE);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
||||||
{
|
{
|
||||||
ASSERT(FALSE);
|
UNIMPLEMENTED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,6 +43,6 @@ ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
HalSetProfileInterval(IN ULONG_PTR Interval)
|
HalSetProfileInterval(IN ULONG_PTR Interval)
|
||||||
{
|
{
|
||||||
ASSERT(FALSE);
|
UNIMPLEMENTED;
|
||||||
return Interval;
|
return Interval;
|
||||||
}
|
}
|
||||||
|
|
|
@ -271,7 +271,7 @@ HaliReadMPConfigTable(PMP_CONFIGURATION_TABLE Table)
|
||||||
|
|
||||||
DPRINT1("Bad MP configuration block signature: %c%c%c%c\n",
|
DPRINT1("Bad MP configuration block signature: %c%c%c%c\n",
|
||||||
pc[0], pc[1], pc[2], pc[3]);
|
pc[0], pc[1], pc[2], pc[3]);
|
||||||
KeBugCheckEx(0, pc[0], pc[1], pc[2], pc[3]);
|
KeBugCheckEx(HAL_INITIALIZATION_FAILED, pc[0], pc[1], pc[2], pc[3]);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ BOOLEAN ARPTransmit(PIP_ADDRESS Address, PVOID LinkAddress,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
TI_DbgPrint(DEBUG_ARP,("Bad Address Type %x\n", Address->Type));
|
TI_DbgPrint(DEBUG_ARP,("Bad Address Type %x\n", Address->Type));
|
||||||
KeBugCheck(0);
|
DbgBreakPoint();
|
||||||
/* Should not happen */
|
/* Should not happen */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,18 +59,6 @@ extern OSK_UINT OskitDebugTraceLevel;
|
||||||
|
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifdef ASSERT
|
|
||||||
#undef ASSERT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NASSERT
|
|
||||||
#define ASSERT(x)
|
|
||||||
#else /* NASSERT */
|
|
||||||
#define ASSERT(x) if (!(x)) { OS_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
|
|
||||||
#endif /* NASSERT */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
||||||
|
|
||||||
#else /* DBG */
|
#else /* DBG */
|
||||||
|
|
|
@ -88,7 +88,7 @@ KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
|
||||||
DbgPrint("EXCEPTION! Record %08x Frame %08x\n",
|
DbgPrint("EXCEPTION! Record %08x Frame %08x\n",
|
||||||
ExceptionRecord, ExceptionFrame);
|
ExceptionRecord, ExceptionFrame);
|
||||||
MmuDumpMap();
|
MmuDumpMap();
|
||||||
KeBugCheck(0);
|
KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -352,6 +352,6 @@ KiInitMachineDependent(VOID)
|
||||||
|
|
||||||
void abort()
|
void abort()
|
||||||
{
|
{
|
||||||
KeBugCheck(0);
|
KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED);
|
||||||
while(1);
|
while(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef ASSERT
|
#undef ASSERT
|
||||||
#define ASSERT(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); KeBugCheck(0); }
|
#define ASSERT(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); DbgBreakPoint(); }
|
||||||
|
|
||||||
// enable "magic"
|
// enable "magic"
|
||||||
//#define R_MAGIC
|
//#define R_MAGIC
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
#define R_ACQUIRE_MUTEX(pool) /*DPRINT1("Acquiring PPool Mutex\n");*/ ExAcquireFastMutex(&pool->Mutex)
|
#define R_ACQUIRE_MUTEX(pool) /*DPRINT1("Acquiring PPool Mutex\n");*/ ExAcquireFastMutex(&pool->Mutex)
|
||||||
#define R_RELEASE_MUTEX(pool) /*DPRINT1("Releasing PPool Mutex\n");*/ ExReleaseFastMutex(&pool->Mutex)
|
#define R_RELEASE_MUTEX(pool) /*DPRINT1("Releasing PPool Mutex\n");*/ ExReleaseFastMutex(&pool->Mutex)
|
||||||
#define R_PRINT_ADDRESS(addr) KeRosPrintAddress(addr)
|
#define R_PRINT_ADDRESS(addr) KeRosPrintAddress(addr)
|
||||||
#define R_PANIC() KeBugCheck(0)
|
#define R_PANIC() KeBugCheck(MEMORY_MANAGEMENT)
|
||||||
#define R_DEBUG DbgPrint
|
#define R_DEBUG DbgPrint
|
||||||
|
|
||||||
#ifdef _ARM_
|
#ifdef _ARM_
|
||||||
|
|
Loading…
Reference in a new issue