created KEBUGCHECK, KEBUGCHECKEX, KEBUGCHECKWITHTS macros to report file/line of bugcheck. replace all direct calls of KeBugCheck, KeBugCheckEx and KeBugCheckWithTs with corresponding macros. I rebuilt from a make clean and it looks good.

svn path=/trunk/; revision=5213
This commit is contained in:
Royce Mitchell III 2003-07-21 21:53:53 +00:00
parent 15550bfef3
commit 2a438cfb48
68 changed files with 361 additions and 353 deletions

View file

@ -1,4 +1,4 @@
/* $Id: ide.c,v 1.57 2002/12/09 19:57:56 hbirr Exp $ /* $Id: ide.c,v 1.58 2003/07/21 21:53:46 royce Exp $
* *
* IDE.C - IDE Disk driver * IDE.C - IDE Disk driver
* written by Rex Jolliff * written by Rex Jolliff
@ -1578,7 +1578,7 @@ STDCALL IDEStartIo(IN PDEVICE_OBJECT DeviceObject,
default: default:
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED; Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
Irp->IoStatus.Information = 0; Irp->IoStatus.Information = 0;
KeBugCheck((ULONG)Irp); KEBUGCHECK((ULONG)Irp);
IoCompleteRequest(Irp, IO_NO_INCREMENT); IoCompleteRequest(Irp, IO_NO_INCREMENT);
IoStartNextPacket(DeviceObject, FALSE); IoStartNextPacket(DeviceObject, FALSE);
break; break;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: fcb.c,v 1.13 2003/06/07 11:34:35 chorns Exp $ /* $Id: fcb.c,v 1.14 2003/07/21 21:53:47 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -248,7 +248,7 @@ CdfsFCBInitializeCache(PVCB Vcb,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("CcRosInitializeFileCache failed\n"); DbgPrint("CcRosInitializeFileCache failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
ObDereferenceObject(FileObject); ObDereferenceObject(FileObject);
@ -427,7 +427,7 @@ CdfsAttachFCBToFileObject(PDEVICE_EXTENSION Vcb,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("CcRosInitializeFileCache failed\n"); DbgPrint("CcRosInitializeFileCache failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Fcb->Flags |= FCB_CACHE_INITIALIZED; Fcb->Flags |= FCB_CACHE_INITIALIZED;
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: attrib.c,v 1.3 2003/07/17 13:31:39 chorns Exp $ /* $Id: attrib.c,v 1.4 2003/07/21 21:53:47 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -215,7 +215,7 @@ NtfsDumpAttribute(PATTRIBUTE Attribute)
default: default:
DbgPrint("RunLength size of %hu not implemented!\n", RunHeader & 0x0F); DbgPrint("RunLength size of %hu not implemented!\n", RunHeader & 0x0F);
KeBugCheck(0); KEBUGCHECK(0);
} }
switch (RunHeader >> 4) switch (RunHeader >> 4)
@ -243,7 +243,7 @@ NtfsDumpAttribute(PATTRIBUTE Attribute)
default: default:
DbgPrint("RunStart size of %hu not implemented!\n", RunHeader >> 4); DbgPrint("RunStart size of %hu not implemented!\n", RunHeader >> 4);
KeBugCheck(0); KEBUGCHECK(0);
} }
DbgPrint(" AllocatedSize %I64d DataSize %I64d\n", NresAttr->AllocatedSize, NresAttr->DataSize); DbgPrint(" AllocatedSize %I64d DataSize %I64d\n", NresAttr->AllocatedSize, NresAttr->DataSize);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: fcb.c,v 1.7 2003/07/17 13:31:39 chorns Exp $ /* $Id: fcb.c,v 1.8 2003/07/21 21:53:47 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -247,7 +247,7 @@ NtfsFCBInitializeCache(PVCB Vcb,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("CcRosInitializeFileCache failed\n"); DbgPrint("CcRosInitializeFileCache failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
ObDereferenceObject(FileObject); ObDereferenceObject(FileObject);
@ -419,7 +419,7 @@ NtfsAttachFCBToFileObject(PDEVICE_EXTENSION Vcb,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("CcRosInitializeFileCache failed\n"); DbgPrint("CcRosInitializeFileCache failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Fcb->Flags |= FCB_CACHE_INITIALIZED; Fcb->Flags |= FCB_CACHE_INITIALIZED;
} }

View file

@ -1,4 +1,4 @@
/* $Id: fcb.c,v 1.29 2003/06/07 11:34:36 chorns Exp $ /* $Id: fcb.c,v 1.30 2003/07/21 21:53:47 royce Exp $
* *
* *
* FILE: fcb.c * FILE: fcb.c
@ -298,7 +298,7 @@ vfatFCBInitializeCacheFromVolume (PVCB vcb, PVFATFCB fcb)
if (!NT_SUCCESS (status)) if (!NT_SUCCESS (status))
{ {
DbgPrint ("CcRosInitializeFileCache failed\n"); DbgPrint ("CcRosInitializeFileCache failed\n");
KeBugCheck (0); KEBUGCHECK (0);
} }
fcb->Flags |= FCB_CACHE_INITIALIZED; fcb->Flags |= FCB_CACHE_INITIALIZED;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: fsctl.c,v 1.17 2003/06/24 21:34:41 ekohl Exp $ /* $Id: fsctl.c,v 1.18 2003/07/21 21:53:47 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -185,13 +185,13 @@ VfatMountDevice(PDEVICE_EXTENSION DeviceExt,
(DeviceExt->FatInfo.BytesPerCluster % PAGE_SIZE) != 0) (DeviceExt->FatInfo.BytesPerCluster % PAGE_SIZE) != 0)
{ {
DbgPrint("(%s:%d) Invalid cluster size\n", __FILE__, __LINE__); DbgPrint("(%s:%d) Invalid cluster size\n", __FILE__, __LINE__);
KeBugCheck(0); KEBUGCHECK(0);
} }
else if (DeviceExt->FatInfo.BytesPerCluster < PAGE_SIZE && else if (DeviceExt->FatInfo.BytesPerCluster < PAGE_SIZE &&
(PAGE_SIZE % DeviceExt->FatInfo.BytesPerCluster) != 0) (PAGE_SIZE % DeviceExt->FatInfo.BytesPerCluster) != 0)
{ {
DbgPrint("(%s:%d) Invalid cluster size2\n", __FILE__, __LINE__); DbgPrint("(%s:%d) Invalid cluster size2\n", __FILE__, __LINE__);
KeBugCheck(0); KEBUGCHECK(0);
} }
return(STATUS_SUCCESS); return(STATUS_SUCCESS);

View file

@ -1,5 +1,5 @@
/* $Id: rw.c,v 1.56 2003/05/11 09:51:26 hbirr Exp $ /* $Id: rw.c,v 1.57 2003/07/21 21:53:47 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -82,7 +82,7 @@ OffsetToCluster(PDEVICE_EXTENSION DeviceExt,
if (FirstCluster == 0) if (FirstCluster == 0)
{ {
DbgPrint("OffsetToCluster is called with FirstCluster = 0!\n"); DbgPrint("OffsetToCluster is called with FirstCluster = 0!\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (FirstCluster == 1) if (FirstCluster == 1)

View file

@ -1,4 +1,4 @@
/* $Id: adapter.c,v 1.4 2002/10/01 19:27:18 chorns Exp $ /* $Id: adapter.c,v 1.5 2003/07/21 21:53:50 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -89,7 +89,7 @@ IoFreeAdapterChannel (PADAPTER_OBJECT AdapterObject)
if( AdapterObject->Inuse == FALSE ) if( AdapterObject->Inuse == FALSE )
{ {
DbgPrint( "Attempting to IoFreeAdapterChannel on a channel not in use\n" ); DbgPrint( "Attempting to IoFreeAdapterChannel on a channel not in use\n" );
KeBugCheck(0); KEBUGCHECK(0);
} }
AdapterObject->Inuse = FALSE; AdapterObject->Inuse = FALSE;
if( AdapterObject->Buffer ) if( AdapterObject->Buffer )

View file

@ -1,4 +1,4 @@
/* $Id: irql.c,v 1.9 2003/01/03 00:28:07 guido Exp $ /* $Id: irql.c,v 1.10 2003/07/21 21:53:50 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -209,7 +209,7 @@ KfLowerIrql (KIRQL NewIrql)
{ {
DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n", DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
__FILE__, __LINE__, NewIrql, CurrentIrql); __FILE__, __LINE__, NewIrql, CurrentIrql);
KeBugCheck(0); KEBUGCHECK(0);
for(;;); for(;;);
} }
@ -268,7 +268,7 @@ KfRaiseIrql (KIRQL NewIrql)
{ {
DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n", DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
__FILE__,__LINE__,CurrentIrql,NewIrql); __FILE__,__LINE__,CurrentIrql,NewIrql);
KeBugCheck (0); KEBUGCHECK (0);
for(;;); for(;;);
} }

View file

@ -1,4 +1,4 @@
/* $Id: mp.c,v 1.7 2003/04/06 10:45:15 chorns Exp $ /* $Id: mp.c,v 1.8 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -277,7 +277,7 @@ IOAPICSetupIds(VOID)
tmp = IOAPICRead(apic, 0); tmp = IOAPICRead(apic, 0);
if (GET_IOAPIC_ID(tmp) != IOAPICMap[apic].ApicId) { if (GET_IOAPIC_ID(tmp) != IOAPICMap[apic].ApicId) {
DPRINT1("Could not set I/O APIC ID!\n"); DPRINT1("Could not set I/O APIC ID!\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }
@ -550,7 +550,7 @@ static VOID AddPinToIrq(
entry = irq_2_pin + entry->next; entry = irq_2_pin + entry->next;
if (++first_free_entry >= PIN_MAP_SIZE) { if (++first_free_entry >= PIN_MAP_SIZE) {
DPRINT1("Ohh no!"); DPRINT1("Ohh no!");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
entry->apic = apic; entry->apic = apic;
@ -595,7 +595,7 @@ static ULONG AssignIrqVector(
current_vector = FIRST_DEVICE_VECTOR + vector_offset; current_vector = FIRST_DEVICE_VECTOR + vector_offset;
} else if (current_vector == FIRST_SYSTEM_VECTOR) { } else if (current_vector == FIRST_SYSTEM_VECTOR) {
DPRINT1("Ran out of interrupt sources!"); DPRINT1("Ran out of interrupt sources!");
KeBugCheck(0); KEBUGCHECK(0);
} }
vector = current_vector; vector = current_vector;
@ -1559,7 +1559,7 @@ HaliInitBSP(
DPRINT("APIC found\n"); DPRINT("APIC found\n");
} else { } else {
DPRINT1("No APIC found\n"); DPRINT1("No APIC found\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
CPUMap[BootCPU].MaxLVT = APICGetMaxLVT(); CPUMap[BootCPU].MaxLVT = APICGetMaxLVT();
@ -1970,7 +1970,7 @@ static VOID HaliMPIOApicInfo(PMP_CONFIGURATION_IOAPIC m)
DPRINT("Max # of I/O APICs (%d) exceeded (found %d).\n", DPRINT("Max # of I/O APICs (%d) exceeded (found %d).\n",
MAX_IOAPIC, IOAPICCount); MAX_IOAPIC, IOAPICCount);
DPRINT1("Recompile with bigger MAX_IOAPIC!.\n"); DPRINT1("Recompile with bigger MAX_IOAPIC!.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
IOAPICMap[IOAPICCount].ApicId = m->ApicId; IOAPICMap[IOAPICCount].ApicId = m->ApicId;
IOAPICMap[IOAPICCount].ApicVersion = m->ApicVersion; IOAPICMap[IOAPICCount].ApicVersion = m->ApicVersion;
@ -1987,7 +1987,7 @@ static VOID HaliMPIntSrcInfo(PMP_CONFIGURATION_INTSRC m)
m->SrcBusIrq, m->DstApicId, m->DstApicInt); m->SrcBusIrq, m->DstApicId, m->DstApicInt);
if (IRQCount > MAX_IRQ_SOURCE) { if (IRQCount > MAX_IRQ_SOURCE) {
DPRINT1("Max # of irq sources exceeded!!\n"); DPRINT1("Max # of irq sources exceeded!!\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
IRQMap[IRQCount] = *m; IRQMap[IRQCount] = *m;
@ -2010,11 +2010,11 @@ static VOID HaliMPIntLocalInfo(PMP_CONFIGURATION_INTLOCAL m)
*/ */
if ((m->IrqType == INT_EXTINT) && (m->DstApicLInt != 0)) { if ((m->IrqType == INT_EXTINT) && (m->DstApicLInt != 0)) {
DPRINT1("Invalid MP table!\n"); DPRINT1("Invalid MP table!\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if ((m->IrqType == INT_NMI) && (m->DstApicLInt != 1)) { if ((m->IrqType == INT_NMI) && (m->DstApicLInt != 1)) {
DPRINT1("Invalid MP table!\n"); DPRINT1("Invalid MP table!\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
@ -2036,14 +2036,14 @@ HaliReadMPConfigTable(
DbgPrint("Bad MP configuration block signature: %c%c%c%c\n", DbgPrint("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]);
KeBugCheck(0); KEBUGCHECK(0);
return; return;
} }
if (MPChecksum((PUCHAR)Table, Table->Length)) if (MPChecksum((PUCHAR)Table, Table->Length))
{ {
DbgPrint("Bad MP configuration block checksum\n"); DbgPrint("Bad MP configuration block checksum\n");
KeBugCheck(0); KEBUGCHECK(0);
return; return;
} }
@ -2051,7 +2051,7 @@ HaliReadMPConfigTable(
{ {
DbgPrint("Bad MP configuration table version (%d)\n", DbgPrint("Bad MP configuration table version (%d)\n",
Table->Specification); Table->Specification);
KeBugCheck(0); KEBUGCHECK(0);
return; return;
} }
@ -2060,7 +2060,7 @@ HaliReadMPConfigTable(
{ {
DbgPrint("APIC base address is at 0x%X. " \ DbgPrint("APIC base address is at 0x%X. " \
"I cannot handle non-standard adresses\n", APICBase); "I cannot handle non-standard adresses\n", APICBase);
KeBugCheck(0); KEBUGCHECK(0);
} }
Entry = (PUCHAR)((PVOID)Table + sizeof(MP_CONFIGURATION_TABLE)); Entry = (PUCHAR)((PVOID)Table + sizeof(MP_CONFIGURATION_TABLE));
@ -2107,7 +2107,7 @@ HaliReadMPConfigTable(
} }
default: default:
DbgPrint("Unknown entry in MPC table\n"); DbgPrint("Unknown entry in MPC table\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }
@ -2378,7 +2378,7 @@ HalpInitMPS(
EBDA <<= 4; EBDA <<= 4;
if (!HaliScanForMPConfigTable((ULONG)EBDA, 0x1000)) { if (!HaliScanForMPConfigTable((ULONG)EBDA, 0x1000)) {
DbgPrint("No multiprocessor compliant system found.\n"); DbgPrint("No multiprocessor compliant system found.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }

View file

@ -47,7 +47,7 @@ KIRQL STDCALL KeGetCurrentIrql (VOID)
if (KeGetCurrentKPCR ()->Irql > HIGH_LEVEL) if (KeGetCurrentKPCR ()->Irql > HIGH_LEVEL)
{ {
DPRINT1 ("CurrentIrql %x\n", KeGetCurrentKPCR ()->Irql); DPRINT1 ("CurrentIrql %x\n", KeGetCurrentKPCR ()->Irql);
KeBugCheck (0); KEBUGCHECK (0);
for(;;); for(;;);
} }
@ -63,7 +63,7 @@ static VOID KeSetCurrentIrql (KIRQL NewIrql)
if (NewIrql > HIGH_LEVEL) if (NewIrql > HIGH_LEVEL)
{ {
DPRINT1 ("NewIrql %x\n", NewIrql); DPRINT1 ("NewIrql %x\n", NewIrql);
KeBugCheck (0); KEBUGCHECK (0);
for(;;); for(;;);
} }
@ -174,7 +174,7 @@ KfLowerIrql (KIRQL NewIrql)
if (NewIrql > KeGetCurrentIrql ()) if (NewIrql > KeGetCurrentIrql ())
{ {
DPRINT1 ("NewIrql %x CurrentIrql %x\n", NewIrql, KeGetCurrentIrql ()); DPRINT1 ("NewIrql %x CurrentIrql %x\n", NewIrql, KeGetCurrentIrql ());
KeBugCheck (0); KEBUGCHECK (0);
for(;;); for(;;);
} }
@ -230,7 +230,7 @@ KfRaiseIrql (KIRQL NewIrql)
if (NewIrql < KeGetCurrentIrql ()) if (NewIrql < KeGetCurrentIrql ())
{ {
DPRINT1 ("CurrentIrql %x NewIrql %x\n", KeGetCurrentIrql (), NewIrql); DPRINT1 ("CurrentIrql %x NewIrql %x\n", KeGetCurrentIrql (), NewIrql);
KeBugCheck (0); KEBUGCHECK (0);
for(;;); for(;;);
} }

View file

@ -53,9 +53,12 @@ KeReleaseSpinLockFromDpcLevel(
* ARGUMENTS: * ARGUMENTS:
* BugCheckCode = Specifies the reason for the bug check * BugCheckCode = Specifies the reason for the bug check
* RETURNS: Doesn't * RETURNS: Doesn't
*
* NOTES - please use the macro KEBUGCHECK with the same argument so the end-user
* knows what file/line number where the bug check occured
*/ */
VOID STDCALL KeBugCheck (ULONG BugCheckCode); VOID STDCALL KeBugCheck (ULONG BugCheckCode);
#define KEBUGCHECK(a) DPRINT1("KeBugCheck at %s:%i\n",__FILE__,__LINE__), KeBugCheck(a)
/* /*
* FUNCTION: Brings the system down in a controlled manner when an * FUNCTION: Brings the system down in a controlled manner when an
@ -64,12 +67,16 @@ VOID STDCALL KeBugCheck (ULONG BugCheckCode);
* BugCheckCode = Specifies the reason for the bug check * BugCheckCode = Specifies the reason for the bug check
* BugCheckParameter[1-4] = Additional information about bug * BugCheckParameter[1-4] = Additional information about bug
* RETURNS: Doesn't * RETURNS: Doesn't
*
* NOTES - please use the macro KEBUGCHECKEX with the same arguments so the end-user
* knows what file/line number where the bug check occured
*/ */
VOID STDCALL KeBugCheckEx (ULONG BugCheckCode, VOID STDCALL KeBugCheckEx (ULONG BugCheckCode,
ULONG BugCheckParameter1, ULONG BugCheckParameter1,
ULONG BugCheckParameter2, ULONG BugCheckParameter2,
ULONG BugCheckParameter3, ULONG BugCheckParameter3,
ULONG BugCheckParameter4); ULONG BugCheckParameter4);
#define KEBUGCHECKEX(a,b,c,d,e) DPRINT1("KeBugCheckEx at %s:%i\n",__FILE__,__LINE__), KeBugCheckEx(a,b,c,d,e)
BOOLEAN STDCALL KeCancelTimer (PKTIMER Timer); BOOLEAN STDCALL KeCancelTimer (PKTIMER Timer);

View file

@ -1,4 +1,4 @@
/* $Id: copy.c,v 1.18 2003/07/10 06:27:13 royce Exp $ /* $Id: copy.c,v 1.19 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -39,13 +39,13 @@ CcInitCacheZeroPage(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Can't allocate CcZeroPage.\n"); DbgPrint("Can't allocate CcZeroPage.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Status = MiZeroPage(CcZeroPage); Status = MiZeroPage(CcZeroPage);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Can't zero out CcZeroPage.\n"); DbgPrint("Can't zero out CcZeroPage.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }

View file

@ -128,7 +128,7 @@ CcSetFileSizes (IN PFILE_OBJECT FileObject,
else else
{ {
DPRINT1("Anyone has referenced a cache segment behind the new size.\n"); DPRINT1("Anyone has referenced a cache segment behind the new size.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }
@ -147,7 +147,7 @@ CcSetFileSizes (IN PFILE_OBJECT FileObject,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("CcRosInternalFreeCacheSegment failed, status = %x\n"); DPRINT1("CcRosInternalFreeCacheSegment failed, status = %x\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: view.c,v 1.67 2003/07/15 19:30:33 hbirr Exp $ /* $Id: view.c,v 1.68 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/cc/view.c * FILE: ntoskrnl/cc/view.c
@ -398,7 +398,7 @@ CcRosMarkDirtyCacheSegment(PBCB Bcb, ULONG FileOffset)
CacheSeg = CcRosLookupCacheSegment(Bcb, FileOffset); CacheSeg = CcRosLookupCacheSegment(Bcb, FileOffset);
if (CacheSeg == NULL) if (CacheSeg == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (!CacheSeg->Dirty) if (!CacheSeg->Dirty)
{ {
@ -569,7 +569,7 @@ CcRosCreateCacheSegment(PBCB Bcb,
if (StartingOffset == 0xffffffff) if (StartingOffset == 0xffffffff)
{ {
DPRINT1("Out of CacheSeg mapping space\n"); DPRINT1("Out of CacheSeg mapping space\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
current->BaseAddress = CiCacheSegMappingRegionBase + StartingOffset * PAGE_SIZE; current->BaseAddress = CiCacheSegMappingRegionBase + StartingOffset * PAGE_SIZE;
@ -595,7 +595,7 @@ CcRosCreateCacheSegment(PBCB Bcb,
MmUnlockAddressSpace(MmGetKernelAddressSpace()); MmUnlockAddressSpace(MmGetKernelAddressSpace());
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
#endif #endif
for (i = 0; i < (Bcb->CacheSegmentSize / PAGE_SIZE); i++) for (i = 0; i < (Bcb->CacheSegmentSize / PAGE_SIZE); i++)
@ -605,7 +605,7 @@ CcRosCreateCacheSegment(PBCB Bcb,
Status = MmRequestPageMemoryConsumer(MC_CACHE, TRUE, &Page); Status = MmRequestPageMemoryConsumer(MC_CACHE, TRUE, &Page);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Status = MmCreateVirtualMapping(NULL, Status = MmCreateVirtualMapping(NULL,
@ -615,7 +615,7 @@ CcRosCreateCacheSegment(PBCB Bcb,
TRUE); TRUE);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
@ -736,7 +736,7 @@ CcRosRequestCacheSegment(PBCB Bcb,
{ {
CPRINT("Bad fileoffset %x should be multiple of %x", CPRINT("Bad fileoffset %x should be multiple of %x",
FileOffset, Bcb->CacheSegmentSize); FileOffset, Bcb->CacheSegmentSize);
KeBugCheck(0); KEBUGCHECK(0);
} }
return(CcRosGetCacheSegment(Bcb, return(CcRosGetCacheSegment(Bcb,
@ -1216,7 +1216,7 @@ CmLazyCloseThreadMain(PVOID Ignored)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("LazyCloseThread: Wait failed\n"); DbgPrint("LazyCloseThread: Wait failed\n");
KeBugCheck(0); KEBUGCHECK(0);
break; break;
} }
if (LazyCloseThreadShouldTerminate) if (LazyCloseThreadShouldTerminate)
@ -1274,7 +1274,7 @@ CcInitView(VOID)
MmUnlockAddressSpace(MmGetKernelAddressSpace()); MmUnlockAddressSpace(MmGetKernelAddressSpace());
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Buffer = ExAllocatePool(NonPagedPool, CI_CACHESEG_MAPPING_REGION_SIZE / (PAGE_SIZE * 8)); Buffer = ExAllocatePool(NonPagedPool, CI_CACHESEG_MAPPING_REGION_SIZE / (PAGE_SIZE * 8));

View file

@ -527,7 +527,7 @@ CmiCheckAndFixHive(PREGISTRY_HIVE RegistryHive)
{ {
/* There is no way to fix the hive without log file - BSOD! */ /* There is no way to fix the hive without log file - BSOD! */
DPRINT("Hive header inconsistent and no log file available!\n"); DPRINT("Hive header inconsistent and no log file available!\n");
KeBugCheck(CONFIG_LIST_FAILED); KEBUGCHECK(CONFIG_LIST_FAILED);
} }
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
@ -570,7 +570,7 @@ CmiCheckAndFixHive(PREGISTRY_HIVE RegistryHive)
HiveHeader->UpdateCounter1 != HiveHeader->UpdateCounter2) HiveHeader->UpdateCounter1 != HiveHeader->UpdateCounter2)
{ {
DPRINT("Hive file and log file are inconsistent!\n"); DPRINT("Hive file and log file are inconsistent!\n");
KeBugCheck(CONFIG_LIST_FAILED); KEBUGCHECK(CONFIG_LIST_FAILED);
} }
/* Log file damaged but hive is okay */ /* Log file damaged but hive is okay */

View file

@ -1,4 +1,4 @@
/* $Id: registry.c,v 1.106 2003/06/16 14:00:51 ekohl Exp $ /* $Id: registry.c,v 1.107 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -367,7 +367,7 @@ CmInit2(PCHAR CommandLine)
Status = CmiCreateCurrentControlSetLink(); Status = CmiCreateCurrentControlSetLink();
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(CONFIG_INITIALIZATION_FAILED); KEBUGCHECK(CONFIG_INITIALIZATION_FAILED);
} }
/* Set PICE 'Start' value to 1, if PICE debugging is enabled */ /* Set PICE 'Start' value to 1, if PICE debugging is enabled */
@ -400,7 +400,7 @@ CmInit2(PCHAR CommandLine)
sizeof(ULONG)); sizeof(ULONG));
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(CONFIG_INITIALIZATION_FAILED); KEBUGCHECK(CONFIG_INITIALIZATION_FAILED);
} }
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: kdb.c,v 1.10 2002/09/08 10:23:18 chorns Exp $ /* $Id: kdb.c,v 1.11 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/dbg/kdb.c * FILE: ntoskrnl/dbg/kdb.c
@ -580,7 +580,7 @@ DbgRegsCommand(ULONG Argc, PCH Argv[], PKTRAP_FRAME Tf)
ULONG ULONG
DbgBugCheckCommand(ULONG Argc, PCH Argv[], PKTRAP_FRAME Tf) DbgBugCheckCommand(ULONG Argc, PCH Argv[], PKTRAP_FRAME Tf)
{ {
KeBugCheck(1); KEBUGCHECK(1);
return(1); return(1);
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: profile.c,v 1.3 2003/05/06 08:45:10 ekohl Exp $ /* $Id: profile.c,v 1.4 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/dbg/profile.c * FILE: ntoskrnl/dbg/profile.c
@ -309,7 +309,7 @@ KdbProfilerAnalyzeSamples()
if (!ExInitializeHashTable(&Hashtable, 17, KdbProfilerKeyCompare, TRUE)) if (!ExInitializeHashTable(&Hashtable, 17, KdbProfilerKeyCompare, TRUE))
{ {
DPRINT1("ExInitializeHashTable() failed."); DPRINT1("ExInitializeHashTable() failed.");
KeBugCheck(0); KEBUGCHECK(0);
} }
InitializeListHead(&SamplesListHead); InitializeListHead(&SamplesListHead);

View file

@ -1,4 +1,4 @@
/* $Id: resource.c,v 1.24 2003/07/15 16:26:18 silverblade Exp $ /* $Id: resource.c,v 1.25 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -258,7 +258,7 @@ static BOOLEAN EiAddSharedOwner(PERESOURCE Resource)
TAG_OWNER_TABLE); TAG_OWNER_TABLE);
if (Resource->OwnerTable == NULL) if (Resource->OwnerTable == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
return(FALSE); return(FALSE);
} }
memset(Resource->OwnerTable,0,sizeof(OWNER_ENTRY)*3); memset(Resource->OwnerTable,0,sizeof(OWNER_ENTRY)*3);
@ -310,7 +310,7 @@ static BOOLEAN EiAddSharedOwner(PERESOURCE Resource)
TAG_OWNER_TABLE); TAG_OWNER_TABLE);
if (freeEntry == NULL) if (freeEntry == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
return(FALSE); return(FALSE);
} }
memcpy(freeEntry,Resource->OwnerTable, memcpy(freeEntry,Resource->OwnerTable,
@ -439,7 +439,7 @@ ExConvertExclusiveToSharedLite (
if (!(Resource->Flag & ResourceOwnedExclusive)) if (!(Resource->Flag & ResourceOwnedExclusive))
{ {
/* Might not be what the caller expects, better bug check */ /* Might not be what the caller expects, better bug check */
KeBugCheck(0); KEBUGCHECK(0);
KeReleaseSpinLock(&Resource->SpinLock, oldIrql); KeReleaseSpinLock(&Resource->SpinLock, oldIrql);
return; return;
} }

View file

@ -263,7 +263,7 @@ ExpWin32kInit(VOID)
if (ExWindowStationObjectType == NULL) if (ExWindowStationObjectType == NULL)
{ {
CPRINT("Could not create window station object type\n"); CPRINT("Could not create window station object type\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
ExWindowStationObjectType->Tag = TAG('W', 'I', 'N', 'S'); ExWindowStationObjectType->Tag = TAG('W', 'I', 'N', 'S');
@ -291,7 +291,7 @@ ExpWin32kInit(VOID)
if (ExDesktopObjectType == NULL) if (ExDesktopObjectType == NULL)
{ {
CPRINT("Could not create desktop object type\n"); CPRINT("Could not create desktop object type\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
ExDesktopObjectType->Tag = TAG('D', 'E', 'S', 'K'); ExDesktopObjectType->Tag = TAG('D', 'E', 'S', 'K');

View file

@ -105,6 +105,7 @@ KeBugCheckWithTf(ULONG BugCheckCode,
ULONG BugCheckParameter3, ULONG BugCheckParameter3,
ULONG BugCheckParameter4, ULONG BugCheckParameter4,
PKTRAP_FRAME Tf); PKTRAP_FRAME Tf);
#define KEBUGCHECKWITHTF(a,b,c,d,e,f) DPRINT1("KeBugCheckWithTf at %s:%i\n",__FILE__,__LINE__), KeBugCheckWithTf(a,b,c,d,e,f)
VOID VOID
KiDumpTrapFrame(PKTRAP_FRAME Tf, ULONG ExceptionNr, ULONG cr2); KiDumpTrapFrame(PKTRAP_FRAME Tf, ULONG ExceptionNr, ULONG cr2);

View file

@ -1,4 +1,4 @@
/* $Id: device.c,v 1.56 2003/07/11 01:23:14 royce Exp $ /* $Id: device.c,v 1.57 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -394,7 +394,7 @@ IopInitializeDevice(PDEVICE_NODE DeviceNode,
{ {
/* FIXME: What do we do? Unload the driver or just disable the device? */ /* FIXME: What do we do? Unload the driver or just disable the device? */
DbgPrint("An FDO was not attached\n"); DbgPrint("An FDO was not attached\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* FIXME: Put some resources in the IRP for the device */ /* FIXME: Put some resources in the IRP for the device */

View file

@ -1,4 +1,4 @@
/* $Id: pnpmgr.c,v 1.12 2003/07/11 01:23:14 royce Exp $ /* $Id: pnpmgr.c,v 1.13 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -1237,7 +1237,7 @@ VOID PnpInit(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("IoCreateDriverObject() failed\n"); CPRINT("IoCreateDriverObject() failed\n");
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
} }
Status = IoCreateDevice( Status = IoCreateDevice(
@ -1251,7 +1251,7 @@ VOID PnpInit(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("IoCreateDevice() failed\n"); CPRINT("IoCreateDevice() failed\n");
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
} }
Status = IopCreateDeviceNode( Status = IopCreateDeviceNode(
@ -1261,7 +1261,7 @@ VOID PnpInit(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("Insufficient resources\n"); CPRINT("Insufficient resources\n");
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
} }
IopRootDeviceNode->Pdo->Flags |= DO_BUS_ENUMERATED_DEVICE; IopRootDeviceNode->Pdo->Flags |= DO_BUS_ENUMERATED_DEVICE;

View file

@ -1,4 +1,4 @@
/* $Id: pnproot.c,v 1.13 2003/07/11 01:23:14 royce Exp $ /* $Id: pnproot.c,v 1.14 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -907,7 +907,7 @@ PnpRootAddDevice(
&PnpRootDeviceObject); &PnpRootDeviceObject);
if (!NT_SUCCESS(Status)) { if (!NT_SUCCESS(Status)) {
CPRINT("IoCreateDevice() failed with status 0x%X\n", Status); CPRINT("IoCreateDevice() failed with status 0x%X\n", Status);
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
} }
DeviceExtension = (PPNPROOT_FDO_DEVICE_EXTENSION)PnpRootDeviceObject->DeviceExtension; DeviceExtension = (PPNPROOT_FDO_DEVICE_EXTENSION)PnpRootDeviceObject->DeviceExtension;
@ -924,12 +924,12 @@ PnpRootAddDevice(
if (!PnpRootDeviceObject) { if (!PnpRootDeviceObject) {
CPRINT("PnpRootDeviceObject 0x%X\n", PnpRootDeviceObject); CPRINT("PnpRootDeviceObject 0x%X\n", PnpRootDeviceObject);
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
} }
if (!PhysicalDeviceObject) { if (!PhysicalDeviceObject) {
CPRINT("PhysicalDeviceObject 0x%X\n", PhysicalDeviceObject); CPRINT("PhysicalDeviceObject 0x%X\n", PhysicalDeviceObject);
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
} }
InitializeListHead(&DeviceExtension->DeviceListHead); InitializeListHead(&DeviceExtension->DeviceListHead);

View file

@ -1,4 +1,4 @@
/* $Id: rawfs.c,v 1.5 2003/07/11 01:23:14 royce Exp $ /* $Id: rawfs.c,v 1.6 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -887,7 +887,7 @@ RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status); CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status);
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
return(Status); return(Status);
} }
DeviceData = DiskDeviceObject->DeviceExtension; DeviceData = DiskDeviceObject->DeviceExtension;
@ -907,7 +907,7 @@ RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status); CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status);
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
return(Status); return(Status);
} }
DeviceData = CdromDeviceObject->DeviceExtension; DeviceData = CdromDeviceObject->DeviceExtension;
@ -927,7 +927,7 @@ RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status); CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status);
KeBugCheck(PHASE1_INITIALIZATION_FAILED); KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
return(Status); return(Status);
} }
DeviceData = TapeDeviceObject->DeviceExtension; DeviceData = TapeDeviceObject->DeviceExtension;

View file

@ -1,4 +1,4 @@
/* $Id: kdebug.c,v 1.44 2003/07/11 01:23:14 royce Exp $ /* $Id: kdebug.c,v 1.45 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -389,7 +389,7 @@ KdSystemDebugControl(ULONG Code)
/* B - Bug check the system. */ /* B - Bug check the system. */
else if (Code == 1) else if (Code == 1)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
* C - Dump statistics about the distribution of tagged blocks in * C - Dump statistics about the distribution of tagged blocks in

View file

@ -96,7 +96,7 @@ KiDeliverNormalApc(VOID)
if (Apc->NormalRoutine == NULL) if (Apc->NormalRoutine == NULL)
{ {
DbgPrint("Exiting kernel with kernel APCs pending.\n"); DbgPrint("Exiting kernel with kernel APCs pending.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Apc->Inserted = FALSE; Apc->Inserted = FALSE;
Thread->Tcb.ApcState.KernelApcInProgress++; Thread->Tcb.ApcState.KernelApcInProgress++;
@ -322,7 +322,7 @@ KeInsertQueueApc (PKAPC Apc,
if (Apc->Inserted) if (Apc->Inserted)
{ {
DbgPrint("KeInsertQueueApc(): multiple APC insertations\n"); DbgPrint("KeInsertQueueApc(): multiple APC insertations\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
TargetThread = Apc->Thread; TargetThread = Apc->Thread;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: catch.c,v 1.33 2003/07/11 01:23:15 royce Exp $ /* $Id: catch.c,v 1.34 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/catch.c * FILE: ntoskrnl/ke/catch.c
@ -132,7 +132,7 @@ KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
/* If that fails then bugcheck */ /* If that fails then bugcheck */
DPRINT1("Could not terminate thread\n"); DPRINT1("Could not terminate thread\n");
KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED); KEBUGCHECK(KMODE_EXCEPTION_NOT_HANDLED);
} }
else else
{ {
@ -147,7 +147,7 @@ KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
if (Value != ExceptionContinueExecution || if (Value != ExceptionContinueExecution ||
0 != (ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE)) 0 != (ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE))
{ {
KeBugCheckWithTf(KMODE_EXCEPTION_NOT_HANDLED, 0, 0, 0, 0, Tf); KEBUGCHECKWITHTF(KMODE_EXCEPTION_NOT_HANDLED, 0, 0, 0, 0, Tf);
} }
} }
} }

View file

@ -95,7 +95,7 @@ KiInitializeGdt(PKPCR Pcr)
if (Gdt == NULL) if (Gdt == NULL)
{ {
DbgPrint("No GDT (%d)\n", Pcr->ProcessorNumber); DbgPrint("No GDT (%d)\n", Pcr->ProcessorNumber);
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: kthread.c,v 1.41 2003/07/11 01:23:15 royce Exp $ /* $Id: kthread.c,v 1.42 2003/07/21 21:53:51 royce Exp $
* *
* FILE: ntoskrnl/ke/kthread.c * FILE: ntoskrnl/ke/kthread.c
* PURPOSE: Microkernel thread support * PURPOSE: Microkernel thread support
@ -113,7 +113,7 @@ KeInitializeThread(PKPROCESS Process, PKTHREAD Thread, BOOLEAN First)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("Failed to create thread stack\n"); DPRINT1("Failed to create thread stack\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
for (i = 0; i < (MM_STACK_SIZE / PAGE_SIZE); i++) for (i = 0; i < (MM_STACK_SIZE / PAGE_SIZE); i++)
{ {
@ -121,7 +121,7 @@ KeInitializeThread(PKPROCESS Process, PKTHREAD Thread, BOOLEAN First)
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE, &Page); Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE, &Page);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Status = MmCreateVirtualMapping(NULL, Status = MmCreateVirtualMapping(NULL,
KernelStack + (i * PAGE_SIZE), KernelStack + (i * PAGE_SIZE),

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: main.c,v 1.165 2003/07/06 10:25:15 hbirr Exp $ /* $Id: main.c,v 1.166 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/main.c * FILE: ntoskrnl/ke/main.c
@ -203,7 +203,7 @@ InitSystemSharedUserPage (PCSZ ParameterLine)
CPRINT("NtOpenSymbolicLinkObject() failed (Status %x)\n", CPRINT("NtOpenSymbolicLinkObject() failed (Status %x)\n",
Status); Status);
KeBugCheck (0x0); KEBUGCHECK (0x0);
} }
Status = NtQuerySymbolicLinkObject (Handle, Status = NtQuerySymbolicLinkObject (Handle,
@ -217,7 +217,7 @@ InitSystemSharedUserPage (PCSZ ParameterLine)
CPRINT("NtQuerySymbolicObject() failed (Status %x)\n", CPRINT("NtQuerySymbolicObject() failed (Status %x)\n",
Status); Status);
KeBugCheck (0x0); KEBUGCHECK (0x0);
} }
DPRINT("Length: %lu ArcDeviceName: %wZ\n", Length, &ArcDeviceName); DPRINT("Length: %lu ArcDeviceName: %wZ\n", Length, &ArcDeviceName);
@ -282,7 +282,7 @@ InitSystemSharedUserPage (PCSZ ParameterLine)
if (BootDriveFound == FALSE) if (BootDriveFound == FALSE)
{ {
DbgPrint("No system drive found!\n"); DbgPrint("No system drive found!\n");
KeBugCheck (0x0); KEBUGCHECK (0x0);
} }
} }
@ -462,12 +462,12 @@ ExpInitializeExecutive(VOID)
KeLowerIrql(PASSIVE_LEVEL); KeLowerIrql(PASSIVE_LEVEL);
if (!SeInit1()) if (!SeInit1())
KeBugCheck(SECURITY_INITIALIZATION_FAILED); KEBUGCHECK(SECURITY_INITIALIZATION_FAILED);
ObInit(); ObInit();
if (!SeInit2()) if (!SeInit2())
KeBugCheck(SECURITY1_INITIALIZATION_FAILED); KEBUGCHECK(SECURITY1_INITIALIZATION_FAILED);
PiInitProcessManager(); PiInitProcessManager();
@ -657,7 +657,7 @@ ExpInitializeExecutive(VOID)
if (BootDriverCount == 0) if (BootDriverCount == 0)
{ {
DbgPrint("No boot drivers available.\n"); DbgPrint("No boot drivers available.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* Create ARC names for boot devices */ /* Create ARC names for boot devices */
@ -667,7 +667,7 @@ ExpInitializeExecutive(VOID)
CPRINT("CommandLine: %s\n", (PUCHAR)KeLoaderBlock.CommandLine); CPRINT("CommandLine: %s\n", (PUCHAR)KeLoaderBlock.CommandLine);
Status = IoCreateSystemRootLink((PUCHAR)KeLoaderBlock.CommandLine); Status = IoCreateSystemRootLink((PUCHAR)KeLoaderBlock.CommandLine);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
KeBugCheck(INACCESSIBLE_BOOT_DEVICE); KEBUGCHECK(INACCESSIBLE_BOOT_DEVICE);
#ifdef DBGPRINT_FILE_LOG #ifdef DBGPRINT_FILE_LOG
/* On the assumption that we can now access disks start up the debug /* On the assumption that we can now access disks start up the debug
@ -721,7 +721,7 @@ ExpInitializeExecutive(VOID)
&ThreadHandle); &ThreadHandle);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheckEx(SESSION4_INITIALIZATION_FAILED, Status, 0, 0, 0); KEBUGCHECKEX(SESSION4_INITIALIZATION_FAILED, Status, 0, 0, 0);
} }
/* /*
@ -733,7 +733,7 @@ ExpInitializeExecutive(VOID)
&Timeout); &Timeout);
if (Status != STATUS_TIMEOUT) if (Status != STATUS_TIMEOUT)
{ {
KeBugCheckEx(SESSION5_INITIALIZATION_FAILED, Status, 0, 0, 0); KEBUGCHECKEX(SESSION5_INITIALIZATION_FAILED, Status, 0, 0, 0);
} }
NtClose(ThreadHandle); NtClose(ThreadHandle);
@ -752,14 +752,14 @@ KiSystemStartup(BOOLEAN BootProcessor)
{ {
/* Never returns */ /* Never returns */
ExpInitializeExecutive(); ExpInitializeExecutive();
KeBugCheck(0); KEBUGCHECK(0);
} }
/* Do application processor initialization */ /* Do application processor initialization */
KeApplicationProcessorInit(); KeApplicationProcessorInit();
PsApplicationProcessorInit(); PsApplicationProcessorInit();
KeLowerIrql(PASSIVE_LEVEL); KeLowerIrql(PASSIVE_LEVEL);
PsIdleThreadMain(NULL); PsIdleThreadMain(NULL);
KeBugCheck(0); KEBUGCHECK(0);
for(;;); for(;;);
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: mutex.c,v 1.13 2003/07/10 17:44:06 royce Exp $ /* $Id: mutex.c,v 1.14 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/mutex.c * FILE: ntoskrnl/ke/mutex.c
@ -75,7 +75,7 @@ KeReleaseMutex(IN PKMUTEX Mutex,
if (Mutex->OwnerThread != KeGetCurrentThread()) if (Mutex->OwnerThread != KeGetCurrentThread())
{ {
DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutex %p\n", Mutex); DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutex %p\n", Mutex);
KeBugCheck(0); /* THREAD_NOT_MUTEX_OWNER */ KEBUGCHECK(0); /* THREAD_NOT_MUTEX_OWNER */
} }
Mutex->Header.SignalState++; Mutex->Header.SignalState++;
assert(Mutex->Header.SignalState <= 1); assert(Mutex->Header.SignalState <= 1);
@ -161,7 +161,7 @@ KeReleaseMutant(IN PKMUTANT Mutant,
DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutant->OwnerThread %p CurrentThread %p\n", DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutant->OwnerThread %p CurrentThread %p\n",
Mutant->OwnerThread, Mutant->OwnerThread,
KeGetCurrentThread()); KeGetCurrentThread());
KeBugCheck(0); /* THREAD_NOT_MUTEX_OWNER */ KEBUGCHECK(0); /* THREAD_NOT_MUTEX_OWNER */
} }
Mutant->Header.SignalState++; Mutant->Header.SignalState++;
assert(Mutant->Header.SignalState <= 1); assert(Mutant->Header.SignalState <= 1);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: process.c,v 1.15 2003/07/10 17:44:06 royce Exp $ /* $Id: process.c,v 1.16 2003/07/21 21:53:51 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/process.c * FILE: ntoskrnl/ke/process.c
@ -57,7 +57,7 @@ KeAttachProcess (PEPROCESS Process)
if (CurrentThread->OldProcess != NULL) if (CurrentThread->OldProcess != NULL)
{ {
DbgPrint("Invalid attach (thread is already attached)\n"); DbgPrint("Invalid attach (thread is already attached)\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
KeRaiseIrql(DISPATCH_LEVEL, &oldlvl); KeRaiseIrql(DISPATCH_LEVEL, &oldlvl);
@ -104,7 +104,7 @@ KeDetachProcess (VOID)
if (CurrentThread->OldProcess == NULL) if (CurrentThread->OldProcess == NULL)
{ {
DbgPrint("Invalid detach (thread was not attached)\n"); DbgPrint("Invalid detach (thread was not attached)\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
KeRaiseIrql(DISPATCH_LEVEL, &oldlvl); KeRaiseIrql(DISPATCH_LEVEL, &oldlvl);

View file

@ -1,4 +1,4 @@
/* $Id: spinlock.c,v 1.17 2003/07/10 17:44:06 royce Exp $ /* $Id: spinlock.c,v 1.18 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -92,14 +92,14 @@ KeAcquireSpinLockAtDpcLevel (PKSPIN_LOCK SpinLock)
if (*SpinLock >= 2) if (*SpinLock >= 2)
{ {
DbgPrint("Lock %x has bad value %x\n", SpinLock, *SpinLock); DbgPrint("Lock %x has bad value %x\n", SpinLock, *SpinLock);
KeBugCheck(0); KEBUGCHECK(0);
} }
while ((i = InterlockedExchange((LONG *)SpinLock, 1)) == 1) while ((i = InterlockedExchange((LONG *)SpinLock, 1)) == 1)
{ {
#ifndef MP #ifndef MP
DbgPrint("Spinning on spinlock %x current value %x\n", SpinLock, i); DbgPrint("Spinning on spinlock %x current value %x\n", SpinLock, i);
KeBugCheck(0); KEBUGCHECK(0);
#else /* not MP */ #else /* not MP */
/* Avoid reading the value again too fast */ /* Avoid reading the value again too fast */
#endif /* MP */ #endif /* MP */
@ -123,7 +123,7 @@ KeReleaseSpinLockFromDpcLevel (PKSPIN_LOCK SpinLock)
if (*SpinLock != 1) if (*SpinLock != 1)
{ {
DbgPrint("Releasing unacquired spinlock %x\n", SpinLock); DbgPrint("Releasing unacquired spinlock %x\n", SpinLock);
KeBugCheck(0); KEBUGCHECK(0);
} }
(void)InterlockedExchange((LONG *)SpinLock, 0); (void)InterlockedExchange((LONG *)SpinLock, 0);
} }

View file

@ -1,4 +1,4 @@
/* $Id: timer.c,v 1.60 2003/07/11 01:23:15 royce Exp $ /* $Id: timer.c,v 1.61 2003/07/21 21:53:51 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -451,7 +451,7 @@ KeExpireTimers(PKDPC Dpc,
if (KeGetCurrentIrql() > DISPATCH_LEVEL) if (KeGetCurrentIrql() > DISPATCH_LEVEL)
{ {
DPRINT1("-----------------------------\n"); DPRINT1("-----------------------------\n");
KeBugCheck(0); KEBUGCHECK(0);
} }

View file

@ -137,7 +137,7 @@ KiSideEffectsBeforeWake(DISPATCHER_HEADER * hdr,
if (Thread == NULL) if (Thread == NULL)
{ {
DPRINT("Thread == NULL!\n"); DPRINT("Thread == NULL!\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Abandoned = Mutex->Abandoned; Abandoned = Mutex->Abandoned;
if (Thread != NULL) if (Thread != NULL)
@ -150,7 +150,7 @@ KiSideEffectsBeforeWake(DISPATCHER_HEADER * hdr,
default: default:
DbgPrint("(%s:%d) Dispatcher object %x has unknown type\n", __FILE__, __LINE__, hdr); DbgPrint("(%s:%d) Dispatcher object %x has unknown type\n", __FILE__, __LINE__, hdr);
KeBugCheck(0); KEBUGCHECK(0);
} }
return Abandoned; return Abandoned;
@ -373,7 +373,7 @@ BOOLEAN KeDispatcherObjectWake(DISPATCHER_HEADER* hdr)
return(KeDispatcherObjectWakeOne(hdr)); return(KeDispatcherObjectWakeOne(hdr));
} }
DbgPrint("Dispatcher object %x has unknown type %d\n", hdr, hdr->Type); DbgPrint("Dispatcher object %x has unknown type %d\n", hdr, hdr->Type);
KeBugCheck(0); KEBUGCHECK(0);
return(FALSE); return(FALSE);
} }

View file

@ -1,4 +1,4 @@
/* $Id: loader.c,v 1.132 2003/07/20 05:15:34 royce Exp $ /* $Id: loader.c,v 1.133 2003/07/21 21:53:52 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -1559,7 +1559,7 @@ LdrPEGetExportAddress(PMODULE_OBJECT ModuleObject,
DbgPrint("Export not found for %d:%s\n", DbgPrint("Export not found for %d:%s\n",
Hint, Hint,
Name != NULL ? Name : "(Ordinal)"); Name != NULL ? Name : "(Ordinal)");
KeBugCheck(0); KEBUGCHECK(0);
} }
return(ExportAddress); return(ExportAddress);
@ -1621,7 +1621,7 @@ LdrSafePEGetExportAddress(PVOID ImportModuleBase,
ps("Export not found for %d:%s\n", ps("Export not found for %d:%s\n",
Hint, Hint,
Name != NULL ? Name : "(Ordinal)"); Name != NULL ? Name : "(Ordinal)");
KeBugCheck(0); KEBUGCHECK(0);
} }
return ExportAddress; return ExportAddress;
} }

View file

@ -1,4 +1,4 @@
/* $Id: reply.c,v 1.17 2003/07/11 01:23:15 royce Exp $ /* $Id: reply.c,v 1.18 2003/07/21 21:53:52 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -49,7 +49,7 @@ EiReplyOrRequestPort (IN PEPORT Port,
if (Port == NULL) if (Port == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
MessageReply = ExAllocatePoolWithTag(NonPagedPool, sizeof(QUEUEDMESSAGE), MessageReply = ExAllocatePoolWithTag(NonPagedPool, sizeof(QUEUEDMESSAGE),

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: anonmem.c,v 1.18 2003/07/12 01:52:10 dwelch Exp $ /* $Id: anonmem.c,v 1.19 2003/07/21 21:53:52 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/anonmem.c * FILE: ntoskrnl/mm/anonmem.c
@ -157,7 +157,7 @@ MmPageOutVirtualMemory(PMADDRESS_SPACE AddressSpace,
if (PhysicalAddress.QuadPart == 0) if (PhysicalAddress.QuadPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -291,7 +291,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
if (PageOp == NULL) if (PageOp == NULL)
{ {
DPRINT1("MmGetPageOp failed"); DPRINT1("MmGetPageOp failed");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -312,12 +312,12 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
if (Status != STATUS_SUCCESS) if (Status != STATUS_SUCCESS)
{ {
DPRINT1("Failed to wait for page op\n"); DPRINT1("Failed to wait for page op\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PageOp->Status == STATUS_PENDING) if (PageOp->Status == STATUS_PENDING)
{ {
DPRINT1("Woke for page op before completion\n"); DPRINT1("Woke for page op before completion\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
* If this wasn't a pagein then we need to restart the handling * If this wasn't a pagein then we need to restart the handling
@ -363,7 +363,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("MmRequestPageMemoryConsumer failed, status = %x\n", Status); DPRINT1("MmRequestPageMemoryConsumer failed, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -380,7 +380,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
Status = MmReadFromSwapPage(SwapEntry, Mdl); Status = MmReadFromSwapPage(SwapEntry, Mdl);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
MmSetSavedSwapEntryPage(Page, SwapEntry); MmSetSavedSwapEntryPage(Page, SwapEntry);
} }
@ -407,7 +407,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("MmCreateVirtualMapping failed, not out of memory\n"); DPRINT1("MmCreateVirtualMapping failed, not out of memory\n");
KeBugCheck(0); KEBUGCHECK(0);
return(Status); return(Status);
} }
@ -727,7 +727,7 @@ MmFreeVirtualMemory(PEPROCESS Process,
if (Status != STATUS_SUCCESS) if (Status != STATUS_SUCCESS)
{ {
DPRINT1("Failed to wait for page op\n"); DPRINT1("Failed to wait for page op\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmLockAddressSpace(&Process->AddressSpace); MmLockAddressSpace(&Process->AddressSpace);
MmReleasePageOp(PageOp); MmReleasePageOp(PageOp);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: balance.c,v 1.19 2003/07/13 14:36:32 dwelch Exp $ /* $Id: balance.c,v 1.20 2003/07/21 21:53:52 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/balance.c * FILE: ntoskrnl/mm/balance.c
@ -108,7 +108,7 @@ MmReleasePageMemoryConsumer(ULONG Consumer, PHYSICAL_ADDRESS Page)
if (Page.QuadPart == 0LL) if (Page.QuadPart == 0LL)
{ {
DPRINT1("Tried to release page zero.\n"); DPRINT1("Tried to release page zero.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&AllocationListLock, &oldIrql); KeAcquireSpinLock(&AllocationListLock, &oldIrql);
@ -176,7 +176,7 @@ MmRebalanceMemoryConsumers(VOID)
Status = MiMemoryConsumers[i].Trim(Target, 0, &NrFreedPages); Status = MiMemoryConsumers[i].Trim(Target, 0, &NrFreedPages);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Target = Target - NrFreedPages; Target = Target - NrFreedPages;
} }
@ -235,7 +235,7 @@ MmRequestPageMemoryConsumer(ULONG Consumer, BOOLEAN CanWait,
KeReleaseSpinLock(&AllocationListLock, oldIrql); KeReleaseSpinLock(&AllocationListLock, oldIrql);
if (Page.QuadPart == 0LL) if (Page.QuadPart == 0LL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
*AllocatedPage = Page; *AllocatedPage = Page;
InterlockedDecrement((LONG *)&MiPagesRequired); InterlockedDecrement((LONG *)&MiPagesRequired);
@ -255,7 +255,7 @@ MmRequestPageMemoryConsumer(ULONG Consumer, BOOLEAN CanWait,
Page = Request.Page; Page = Request.Page;
if (Page.QuadPart == 0LL) if (Page.QuadPart == 0LL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
MmTransferOwnershipPage(Page, Consumer); MmTransferOwnershipPage(Page, Consumer);
*AllocatedPage = Page; *AllocatedPage = Page;
@ -270,7 +270,7 @@ MmRequestPageMemoryConsumer(ULONG Consumer, BOOLEAN CanWait,
Page = MmAllocPage(Consumer, 0); Page = MmAllocPage(Consumer, 0);
if (Page.QuadPart == 0LL) if (Page.QuadPart == 0LL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
*AllocatedPage = Page; *AllocatedPage = Page;

View file

@ -73,7 +73,7 @@ MmTransferOwnershipPage(PHYSICAL_ADDRESS PhysicalAddress, ULONG NewConsumer)
if (MmPageArray[Start].MapCount != 0) if (MmPageArray[Start].MapCount != 0)
{ {
DbgPrint("Transfering mapped page.\n"); DbgPrint("Transfering mapped page.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
RemoveEntryList(&MmPageArray[Start].ListEntry); RemoveEntryList(&MmPageArray[Start].ListEntry);
InsertTailList(&UsedPageListHeads[NewConsumer], InsertTailList(&UsedPageListHeads[NewConsumer],
@ -380,7 +380,7 @@ MmInitializePageList(PVOID FirstPhysKernelAddress,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
memset((PVOID)MmPageArray + (i * PAGE_SIZE), 0, PAGE_SIZE); memset((PVOID)MmPageArray + (i * PAGE_SIZE), 0, PAGE_SIZE);
@ -556,7 +556,7 @@ MmMarkPageMapped(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type == MM_PHYSICAL_PAGE_FREE) if (MmPageArray[Start].Flags.Type == MM_PHYSICAL_PAGE_FREE)
{ {
DbgPrint("Mapping non-used page\n"); DbgPrint("Mapping non-used page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].MapCount++; MmPageArray[Start].MapCount++;
KeReleaseSpinLock(&PageListLock, oldIrql); KeReleaseSpinLock(&PageListLock, oldIrql);
@ -575,12 +575,12 @@ MmMarkPageUnmapped(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type == MM_PHYSICAL_PAGE_FREE) if (MmPageArray[Start].Flags.Type == MM_PHYSICAL_PAGE_FREE)
{ {
DbgPrint("Unmapping non-used page\n"); DbgPrint("Unmapping non-used page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (MmPageArray[Start].MapCount == 0) if (MmPageArray[Start].MapCount == 0)
{ {
DbgPrint("Unmapping not mapped page\n"); DbgPrint("Unmapping not mapped page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].MapCount--; MmPageArray[Start].MapCount--;
KeReleaseSpinLock(&PageListLock, oldIrql); KeReleaseSpinLock(&PageListLock, oldIrql);
@ -638,7 +638,7 @@ MmReferencePage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&PageListLock, &oldIrql); KeAcquireSpinLock(&PageListLock, &oldIrql);
@ -646,7 +646,7 @@ MmReferencePage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Referencing non-used page\n"); DbgPrint("Referencing non-used page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].ReferenceCount++; MmPageArray[Start].ReferenceCount++;
@ -664,7 +664,7 @@ MmGetReferenceCountPage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&PageListLock, &oldIrql); KeAcquireSpinLock(&PageListLock, &oldIrql);
@ -672,7 +672,7 @@ MmGetReferenceCountPage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Getting reference count for free page\n"); DbgPrint("Getting reference count for free page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
RCount = MmPageArray[Start].ReferenceCount; RCount = MmPageArray[Start].ReferenceCount;
@ -690,7 +690,7 @@ MmIsUsablePage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED && if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED &&
@ -712,7 +712,7 @@ MmDereferencePage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&PageListLock, &oldIrql); KeAcquireSpinLock(&PageListLock, &oldIrql);
@ -721,7 +721,7 @@ MmDereferencePage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Dereferencing free page\n"); DbgPrint("Dereferencing free page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].ReferenceCount--; MmPageArray[Start].ReferenceCount--;
@ -733,29 +733,29 @@ MmDereferencePage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].RmapListHead != NULL) if (MmPageArray[Start].RmapListHead != NULL)
{ {
DbgPrint("Freeing page with rmap entries.\n"); DbgPrint("Freeing page with rmap entries.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (MmPageArray[Start].MapCount != 0) if (MmPageArray[Start].MapCount != 0)
{ {
DbgPrint("Freeing mapped page (0x%I64x count %d)\n", DbgPrint("Freeing mapped page (0x%I64x count %d)\n",
PhysicalAddress, MmPageArray[Start].MapCount); PhysicalAddress, MmPageArray[Start].MapCount);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (MmPageArray[Start].LockCount > 0) if (MmPageArray[Start].LockCount > 0)
{ {
DbgPrint("Freeing locked page\n"); DbgPrint("Freeing locked page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (MmPageArray[Start].SavedSwapEntry != 0) if (MmPageArray[Start].SavedSwapEntry != 0)
{ {
DbgPrint("Freeing page with swap entry.\n"); DbgPrint("Freeing page with swap entry.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Freeing page with flags %x\n", DbgPrint("Freeing page with flags %x\n",
MmPageArray[Start].Flags.Type); MmPageArray[Start].Flags.Type);
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].Flags.Type = MM_PHYSICAL_PAGE_FREE; MmPageArray[Start].Flags.Type = MM_PHYSICAL_PAGE_FREE;
InsertTailList(&FreeUnzeroedPageListHead, InsertTailList(&FreeUnzeroedPageListHead,
@ -780,7 +780,7 @@ MmGetLockCountPage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&PageListLock, &oldIrql); KeAcquireSpinLock(&PageListLock, &oldIrql);
@ -788,7 +788,7 @@ MmGetLockCountPage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Getting lock count for free page\n"); DbgPrint("Getting lock count for free page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
LockCount = MmPageArray[Start].LockCount; LockCount = MmPageArray[Start].LockCount;
@ -807,7 +807,7 @@ MmLockPage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&PageListLock, &oldIrql); KeAcquireSpinLock(&PageListLock, &oldIrql);
@ -815,7 +815,7 @@ MmLockPage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Locking free page\n"); DbgPrint("Locking free page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].LockCount++; MmPageArray[Start].LockCount++;
@ -832,7 +832,7 @@ MmUnlockPage(PHYSICAL_ADDRESS PhysicalAddress)
if (PhysicalAddress.u.LowPart == 0) if (PhysicalAddress.u.LowPart == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLock(&PageListLock, &oldIrql); KeAcquireSpinLock(&PageListLock, &oldIrql);
@ -840,7 +840,7 @@ MmUnlockPage(PHYSICAL_ADDRESS PhysicalAddress)
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED) if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{ {
DbgPrint("Unlocking free page\n"); DbgPrint("Unlocking free page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmPageArray[Start].LockCount--; MmPageArray[Start].LockCount--;
@ -884,12 +884,12 @@ MmAllocPage(ULONG Consumer, SWAPENTRY SavedSwapEntry)
if (PageDescriptor->Flags.Type != MM_PHYSICAL_PAGE_FREE) if (PageDescriptor->Flags.Type != MM_PHYSICAL_PAGE_FREE)
{ {
DbgPrint("Got non-free page from freelist\n"); DbgPrint("Got non-free page from freelist\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PageDescriptor->MapCount != 0) if (PageDescriptor->MapCount != 0)
{ {
DbgPrint("Got mapped page from freelist\n"); DbgPrint("Got mapped page from freelist\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
PageDescriptor->Flags.Type = MM_PHYSICAL_PAGE_USED; PageDescriptor->Flags.Type = MM_PHYSICAL_PAGE_USED;
PageDescriptor->Flags.Consumer = Consumer; PageDescriptor->Flags.Consumer = Consumer;
@ -914,7 +914,7 @@ MmAllocPage(ULONG Consumer, SWAPENTRY SavedSwapEntry)
if (PageDescriptor->MapCount != 0) if (PageDescriptor->MapCount != 0)
{ {
DbgPrint("Returning mapped page.\n"); DbgPrint("Returning mapped page.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
return(PageOffset); return(PageOffset);
} }
@ -941,7 +941,7 @@ MmZeroPageThreadMain(PVOID Ignored)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("ZeroPageThread: Wait failed\n"); DbgPrint("ZeroPageThread: Wait failed\n");
KeBugCheck(0); KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
@ -972,7 +972,7 @@ MmZeroPageThreadMain(PVOID Ignored)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
memset(Address, 0, PAGE_SIZE); memset(Address, 0, PAGE_SIZE);
@ -981,7 +981,7 @@ MmZeroPageThreadMain(PVOID Ignored)
if (PageDescriptor->MapCount != 0) if (PageDescriptor->MapCount != 0)
{ {
DbgPrint("Mapped page on freelist.\n"); DbgPrint("Mapped page on freelist.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
PageDescriptor->Flags.Type = MM_PHYSICAL_PAGE_FREE; PageDescriptor->Flags.Type = MM_PHYSICAL_PAGE_FREE;
InsertHeadList(&FreeZeroedPageListHead, ListEntry); InsertHeadList(&FreeZeroedPageListHead, ListEntry);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: page.c,v 1.55 2003/07/13 14:36:32 dwelch Exp $ /* $Id: page.c,v 1.56 2003/07/21 21:53:53 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/i386/page.c * FILE: ntoskrnl/mm/i386/page.c
@ -95,7 +95,7 @@ ProtectToPTE(ULONG flProtect)
else else
{ {
DPRINT1("Unknown main protection type.\n"); DPRINT1("Unknown main protection type.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (!(flProtect & PAGE_SYSTEM)) if (!(flProtect & PAGE_SYSTEM))
{ {
@ -173,7 +173,7 @@ VOID MmDeletePageTable(PEPROCESS Process, PVOID Address)
*(ADDR_TO_PDE(Address)) = 0; *(ADDR_TO_PDE(Address)) = 0;
if (Address >= (PVOID)KERNEL_BASE) if (Address >= (PVOID)KERNEL_BASE)
{ {
KeBugCheck(0); KEBUGCHECK(0);
// MmGlobalKernelPageDirectory[ADDR_TO_PDE_OFFSET(Address)] = 0; // MmGlobalKernelPageDirectory[ADDR_TO_PDE_OFFSET(Address)] = 0;
} }
FLUSH_TLB; FLUSH_TLB;
@ -202,7 +202,7 @@ VOID MmFreePageTable(PEPROCESS Process, PVOID Address)
{ {
DbgPrint("Page table entry not clear at %x/%x (is %x)\n", DbgPrint("Page table entry not clear at %x/%x (is %x)\n",
((ULONG)Address / 4*1024*1024), i, PageTable[i]); ((ULONG)Address / 4*1024*1024), i, PageTable[i]);
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
npage = *(ADDR_TO_PDE(Address)); npage = *(ADDR_TO_PDE(Address));
@ -212,7 +212,7 @@ VOID MmFreePageTable(PEPROCESS Process, PVOID Address)
if (Address >= (PVOID)KERNEL_BASE) if (Address >= (PVOID)KERNEL_BASE)
{ {
// MmGlobalKernelPageDirectory[ADDR_TO_PDE_OFFSET(Address)] = 0; // MmGlobalKernelPageDirectory[ADDR_TO_PDE_OFFSET(Address)] = 0;
KeBugCheck(0); KEBUGCHECK(0);
} }
else else
{ {
@ -255,7 +255,7 @@ NTSTATUS MmGetPageEntry2(PVOID PAddress, PULONG* Pte, BOOLEAN MayWait)
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, MayWait, &npage); Status = MmRequestPageMemoryConsumer(MC_NPPOOL, MayWait, &npage);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
oldIrql = KeRaiseIrqlToSynchLevel(); oldIrql = KeRaiseIrqlToSynchLevel();
/* An other thread can set this pde entry, we must check again */ /* An other thread can set this pde entry, we must check again */
@ -405,7 +405,7 @@ MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, PHYSIC
} }
if ((*Pde) == 0) if ((*Pde) == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -417,7 +417,7 @@ MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, PHYSIC
WasValid = (PAGE_MASK(Pte) != 0); WasValid = (PAGE_MASK(Pte) != 0);
if (!WasValid) if (!WasValid)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -783,7 +783,7 @@ PULONG MmGetPageEntry(PVOID PAddress)
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &npage); Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &npage);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
MiZeroPage(npage); MiZeroPage(npage);
oldIrql = KeRaiseIrqlToSynchLevel(); oldIrql = KeRaiseIrqlToSynchLevel();
@ -806,7 +806,7 @@ PULONG MmGetPageEntry(PVOID PAddress)
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &npage); Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &npage);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
MiZeroPage(npage); MiZeroPage(npage);
*Pde = npage.u.LowPart | PA_PRESENT | PA_READWRITE | PA_USER; *Pde = npage.u.LowPart | PA_PRESENT | PA_READWRITE | PA_USER;
@ -846,7 +846,7 @@ MmIsAccessedAndResetAccessPage(PEPROCESS Process, PVOID Address)
if (((ULONG)Address & ~0xFFF) < KERNEL_BASE) if (((ULONG)Address & ~0xFFF) < KERNEL_BASE)
{ {
DPRINT1("MmIsAccessedAndResetAccessPage is called for user space without a process.\n"); DPRINT1("MmIsAccessedAndResetAccessPage is called for user space without a process.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
CurrentProcess = NULL; CurrentProcess = NULL;
} }
@ -884,7 +884,7 @@ VOID MmSetCleanPage(PEPROCESS Process, PVOID Address)
if (((ULONG)Address & ~0xFFF) < KERNEL_BASE) if (((ULONG)Address & ~0xFFF) < KERNEL_BASE)
{ {
DPRINT1("MmSetCleanPage is called for user space without a process.\n"); DPRINT1("MmSetCleanPage is called for user space without a process.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
CurrentProcess = NULL; CurrentProcess = NULL;
} }
@ -915,7 +915,7 @@ VOID MmSetDirtyPage(PEPROCESS Process, PVOID Address)
if (((ULONG)Address & ~0xFFF) < KERNEL_BASE) if (((ULONG)Address & ~0xFFF) < KERNEL_BASE)
{ {
DPRINT1("MmSetDirtyPage is called for user space without a process.\n"); DPRINT1("MmSetDirtyPage is called for user space without a process.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
CurrentProcess = NULL; CurrentProcess = NULL;
} }
@ -981,12 +981,12 @@ MmCreateVirtualMappingForKernel(PVOID Address,
if (Process == NULL && Address < (PVOID)KERNEL_BASE) if (Process == NULL && Address < (PVOID)KERNEL_BASE)
{ {
DPRINT1("No process\n"); DPRINT1("No process\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Process != NULL && Address >= (PVOID)KERNEL_BASE) if (Process != NULL && Address >= (PVOID)KERNEL_BASE)
{ {
DPRINT1("Setting kernel address with process context\n"); DPRINT1("Setting kernel address with process context\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Attributes = ProtectToPTE(flProtect); Attributes = ProtectToPTE(flProtect);
@ -1006,7 +1006,7 @@ MmCreateVirtualMappingForKernel(PVOID Address,
} }
if (PAGE_MASK((*Pte)) != 0 && !((*Pte) & PA_PRESENT)) if (PAGE_MASK((*Pte)) != 0 && !((*Pte) & PA_PRESENT))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PAGE_MASK((*Pte)) != 0) if (PAGE_MASK((*Pte)) != 0)
{ {
@ -1053,16 +1053,16 @@ MmCreatePageFileMapping(PEPROCESS Process,
if (Process == NULL && Address < (PVOID)KERNEL_BASE) if (Process == NULL && Address < (PVOID)KERNEL_BASE)
{ {
DPRINT1("No process\n"); DPRINT1("No process\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Process != NULL && Address >= (PVOID)KERNEL_BASE) if (Process != NULL && Address >= (PVOID)KERNEL_BASE)
{ {
DPRINT1("Setting kernel address with process context\n"); DPRINT1("Setting kernel address with process context\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (SwapEntry & (1 << 31)) if (SwapEntry & (1 << 31))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Process != NULL && Process != CurrentProcess) if (Process != NULL && Process != CurrentProcess)
@ -1126,12 +1126,12 @@ MmCreateVirtualMappingUnsafe(PEPROCESS Process,
if (Process == NULL && Address < (PVOID)KERNEL_BASE) if (Process == NULL && Address < (PVOID)KERNEL_BASE)
{ {
DPRINT1("No process\n"); DPRINT1("No process\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Process != NULL && Address >= (PVOID)KERNEL_BASE) if (Process != NULL && Address >= (PVOID)KERNEL_BASE)
{ {
DPRINT1("Setting kernel address with process context\n"); DPRINT1("Setting kernel address with process context\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmMarkPageMapped(PhysicalAddress); MmMarkPageMapped(PhysicalAddress);
@ -1141,7 +1141,7 @@ MmCreateVirtualMappingUnsafe(PEPROCESS Process,
DPRINT1("Setting physical address but not allowing access at address " DPRINT1("Setting physical address but not allowing access at address "
"0x%.8X with attributes %x/%x.\n", "0x%.8X with attributes %x/%x.\n",
Address, Attributes, flProtect); Address, Attributes, flProtect);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Process != NULL && Process != CurrentProcess) if (Process != NULL && Process != CurrentProcess)
@ -1160,7 +1160,7 @@ MmCreateVirtualMappingUnsafe(PEPROCESS Process,
} }
if (PAGE_MASK((*Pte)) != 0 && !((*Pte) & PA_PRESENT)) if (PAGE_MASK((*Pte)) != 0 && !((*Pte) & PA_PRESENT))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PAGE_MASK((*Pte)) != 0) if (PAGE_MASK((*Pte)) != 0)
{ {
@ -1196,7 +1196,7 @@ MmCreateVirtualMapping(PEPROCESS Process,
if (!MmIsUsablePage(PhysicalAddress)) if (!MmIsUsablePage(PhysicalAddress))
{ {
DPRINT1("Page at address %x not usable\n", PhysicalAddress); DPRINT1("Page at address %x not usable\n", PhysicalAddress);
KeBugCheck(0); KEBUGCHECK(0);
} }
return(MmCreateVirtualMappingUnsafe(Process, return(MmCreateVirtualMappingUnsafe(Process,

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: iospace.c,v 1.20 2003/07/10 21:05:03 royce Exp $ /* $Id: iospace.c,v 1.21 2003/07/21 21:53:52 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/iospace.c * FILE: ntoskrnl/mm/iospace.c
@ -109,7 +109,7 @@ MmMapIoSpace (IN PHYSICAL_ADDRESS PhysicalAddress,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmMarkPageMapped((PHYSICAL_ADDRESS) (PhysicalAddress.QuadPart + MmMarkPageMapped((PHYSICAL_ADDRESS) (PhysicalAddress.QuadPart +
(i * PAGE_SIZE))); (i * PAGE_SIZE)));

View file

@ -1,4 +1,4 @@
/* $Id: kmap.c,v 1.25 2003/07/05 18:10:50 hbirr Exp $ /* $Id: kmap.c,v 1.26 2003/07/21 21:53:52 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -119,7 +119,7 @@ ExAllocatePageWithPhysPage(PHYSICAL_ADDRESS PhysPage)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
return Addr; return Addr;
} }
@ -170,7 +170,7 @@ MiAllocNonPagedPoolRegion(ULONG nr_pages)
if (Base == 0xFFFFFFFF) if (Base == 0xFFFFFFFF)
{ {
DbgPrint("CRITICAL: Out of non-paged pool space\n"); DbgPrint("CRITICAL: Out of non-paged pool space\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (AllocMapHint == Base) if (AllocMapHint == Base)
{ {

View file

@ -377,7 +377,7 @@ MmFreeMemoryArea(PMADDRESS_SPACE AddressSpace,
BaseAddress); BaseAddress);
if (MemoryArea == NULL) if (MemoryArea == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
if (AddressSpace->Process != NULL && if (AddressSpace->Process != NULL &&

View file

@ -1,4 +1,4 @@
/* $Id: mdl.c,v 1.52 2003/07/10 21:05:03 royce Exp $ /* $Id: mdl.c,v 1.53 2003/07/21 21:53:52 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -56,7 +56,7 @@ MmInitializeMdlImplementation(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
MmUnlockAddressSpace(MmGetKernelAddressSpace()); MmUnlockAddressSpace(MmGetKernelAddressSpace());
KeBugCheck(0); KEBUGCHECK(0);
} }
MmUnlockAddressSpace(MmGetKernelAddressSpace()); MmUnlockAddressSpace(MmGetKernelAddressSpace());
@ -153,7 +153,7 @@ MmMapLockedPages(PMDL Mdl, KPROCESSOR_MODE AccessMode)
if (AccessMode == UserMode) if (AccessMode == UserMode)
{ {
DPRINT1("MDL mapping to user-mode not yet handled.\n"); DPRINT1("MDL mapping to user-mode not yet handled.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* Calculate the number of pages required. */ /* Calculate the number of pages required. */
@ -167,7 +167,7 @@ MmMapLockedPages(PMDL Mdl, KPROCESSOR_MODE AccessMode)
if (StartingOffset == 0xffffffff) if (StartingOffset == 0xffffffff)
{ {
DPRINT1("Out of MDL mapping space\n"); DPRINT1("Out of MDL mapping space\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Base = MiMdlMappingRegionBase + StartingOffset * PAGE_SIZE; Base = MiMdlMappingRegionBase + StartingOffset * PAGE_SIZE;
@ -192,7 +192,7 @@ MmMapLockedPages(PMDL Mdl, KPROCESSOR_MODE AccessMode)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: mm.c,v 1.64 2003/07/11 01:23:15 royce Exp $ /* $Id: mm.c,v 1.65 2003/07/21 21:53:52 royce Exp $
* *
* COPYRIGHT: See COPYING in the top directory * COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -82,7 +82,7 @@ NTSTATUS MmReleaseMemoryArea(PEPROCESS Process, PMEMORY_AREA Marea)
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
default: default:
KeBugCheck(0); KEBUGCHECK(0);
} }
return(STATUS_SUCCESS); return(STATUS_SUCCESS);

View file

@ -1,4 +1,4 @@
/* $Id: mminit.c,v 1.53 2003/07/13 14:36:32 dwelch Exp $ /* $Id: mminit.c,v 1.54 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top directory * COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -237,7 +237,7 @@ VOID MmInitVirtualMemory(ULONG LastKernelAddress,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
RtlZeroMemory(BaseAddress, Length); RtlZeroMemory(BaseAddress, Length);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: mpw.c,v 1.15 2003/07/17 16:57:39 silverblade Exp $ /* $Id: mpw.c,v 1.16 2003/07/21 21:53:53 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/mpw.c * FILE: ntoskrnl/mm/mpw.c
@ -94,7 +94,7 @@ MmMpwThreadMain(PVOID Ignored)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("MpwThread: Wait failed\n"); DbgPrint("MpwThread: Wait failed\n");
KeBugCheck(0); KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
if (MpwThreadShouldTerminate) if (MpwThreadShouldTerminate)

View file

@ -1,4 +1,4 @@
/* $Id: npool.c,v 1.70 2003/07/11 01:23:15 royce Exp $ /* $Id: npool.c,v 1.71 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -926,7 +926,7 @@ static void validate_free_list(void)
{ {
DbgPrint("Bad block magic (probable pool corruption) at %x\n", DbgPrint("Bad block magic (probable pool corruption) at %x\n",
current); current);
KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0); KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
} }
if (base_addr < MiNonPagedPoolStart || if (base_addr < MiNonPagedPoolStart ||
@ -936,13 +936,13 @@ static void validate_free_list(void)
DbgPrint("Size %d\n",current->Size); DbgPrint("Size %d\n",current->Size);
DbgPrint("Limits are %x %x\n",MiNonPagedPoolStart, DbgPrint("Limits are %x %x\n",MiNonPagedPoolStart,
MiNonPagedPoolStart+MiCurrentNonPagedPoolLength); MiNonPagedPoolStart+MiCurrentNonPagedPoolLength);
KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0); KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
} }
blocks_seen++; blocks_seen++;
if (blocks_seen > MiNrFreeBlocks) if (blocks_seen > MiNrFreeBlocks)
{ {
DbgPrint("Too many blocks on free list\n"); DbgPrint("Too many blocks on free list\n");
KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0); KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
} }
if (current->ListEntry.Flink != &MiFreeBlockListHead && if (current->ListEntry.Flink != &MiFreeBlockListHead &&
current->ListEntry.Flink->Blink != &current->ListEntry) current->ListEntry.Flink->Blink != &current->ListEntry)
@ -951,7 +951,7 @@ static void validate_free_list(void)
"current->next->previous %x)\n", "current->next->previous %x)\n",
__FILE__,__LINE__,current, current->ListEntry.Flink, __FILE__,__LINE__,current, current->ListEntry.Flink,
current->ListEntry.Flink->Blink); current->ListEntry.Flink->Blink);
KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0); KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
} }
current_entry = current_entry->Flink; current_entry = current_entry->Flink;
@ -979,7 +979,7 @@ static void validate_used_list(void)
{ {
DbgPrint("Bad block magic (probable pool corruption) at %x\n", DbgPrint("Bad block magic (probable pool corruption) at %x\n",
current); current);
KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0); KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
} }
if (base_addr < MiNonPagedPoolStart || if (base_addr < MiNonPagedPoolStart ||
(base_addr+current->Size) > (base_addr+current->Size) >
@ -1028,7 +1028,7 @@ static void check_duplicates(BLOCK_HDR* blk)
{ {
DbgPrint("Bad block magic (probable pool corruption) at %x\n", DbgPrint("Bad block magic (probable pool corruption) at %x\n",
current); current);
KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0); KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
} }
if ( (int)current > base && (int)current < last ) if ( (int)current > base && (int)current < last )
@ -1390,7 +1390,7 @@ static void* grow_kernel_pool(unsigned int size, ULONG Tag, PVOID Caller)
if (MiCurrentNonPagedPoolLength + nr_pages * PAGE_SIZE > MiNonPagedPoolLength) if (MiCurrentNonPagedPoolLength + nr_pages * PAGE_SIZE > MiNonPagedPoolLength)
{ {
DbgPrint("CRITICAL: Out of non-paged pool space\n"); DbgPrint("CRITICAL: Out of non-paged pool space\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MiCurrentNonPagedPoolLength += nr_pages * PAGE_SIZE; MiCurrentNonPagedPoolLength += nr_pages * PAGE_SIZE;
KeReleaseSpinLock(&MmNpoolLock, oldIrql); KeReleaseSpinLock(&MmNpoolLock, oldIrql);
@ -1405,7 +1405,7 @@ static void* grow_kernel_pool(unsigned int size, ULONG Tag, PVOID Caller)
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE, &Page); Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE, &Page);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
return(NULL); return(NULL);
} }
Status = MmCreateVirtualMapping(NULL, Status = MmCreateVirtualMapping(NULL,
@ -1416,7 +1416,7 @@ static void* grow_kernel_pool(unsigned int size, ULONG Tag, PVOID Caller)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
@ -1510,7 +1510,7 @@ VOID STDCALL ExFreeNonPagedPool (PVOID block)
DbgPrint("ExFreePool of non-allocated address %x (magic %x)\n", DbgPrint("ExFreePool of non-allocated address %x (magic %x)\n",
block, blk->Magic); block, blk->Magic);
} }
KeBugCheck(0); KEBUGCHECK(0);
return; return;
} }
@ -1640,7 +1640,7 @@ ExAllocateWholePageBlock(ULONG UserSize)
Page = MmAllocPage(MC_NPPOOL, 0); Page = MmAllocPage(MC_NPPOOL, 0);
if (Page.QuadPart == 0LL) if (Page.QuadPart == 0LL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
MmCreateVirtualMapping(NULL, MmCreateVirtualMapping(NULL,
Address + (i * PAGE_SIZE), Address + (i * PAGE_SIZE),
@ -1662,7 +1662,7 @@ ExFreeWholePageBlock(PVOID Addr)
Addr >= (MiNonPagedPoolStart + MiCurrentNonPagedPoolLength)) Addr >= (MiNonPagedPoolStart + MiCurrentNonPagedPoolLength))
{ {
DbgPrint("Block %x found outside pool area\n", Addr); DbgPrint("Block %x found outside pool area\n", Addr);
KeBugCheck(0); KEBUGCHECK(0);
} }
NrPages = *(PULONG)((ULONG)Addr - sizeof(ULONG)); NrPages = *(PULONG)((ULONG)Addr - sizeof(ULONG));
MiFreeNonPagedPoolRegion((PVOID)PAGE_ROUND_DOWN((ULONG)Addr), NrPages, TRUE); MiFreeNonPagedPoolRegion((PVOID)PAGE_ROUND_DOWN((ULONG)Addr), NrPages, TRUE);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: pagefile.c,v 1.32 2003/07/11 01:23:15 royce Exp $ /* $Id: pagefile.c,v 1.33 2003/07/21 21:53:53 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/pagefile.c * FILE: ntoskrnl/mm/pagefile.c
@ -133,7 +133,7 @@ NTSTATUS MmWriteToSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
if (SwapEntry == 0) if (SwapEntry == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
@ -143,13 +143,13 @@ NTSTATUS MmWriteToSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
if (i >= MAX_PAGING_FILES) if (i >= MAX_PAGING_FILES)
{ {
DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry); DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PagingFileList[i]->FileObject == NULL || if (PagingFileList[i]->FileObject == NULL ||
PagingFileList[i]->FileObject->DeviceObject == NULL) PagingFileList[i]->FileObject->DeviceObject == NULL)
{ {
DPRINT1("Bad paging file 0x%.8X\n", SwapEntry); DPRINT1("Bad paging file 0x%.8X\n", SwapEntry);
KeBugCheck(0); KEBUGCHECK(0);
} }
file_offset.QuadPart = offset * PAGE_SIZE; file_offset.QuadPart = offset * PAGE_SIZE;
@ -173,7 +173,7 @@ NTSTATUS MmWriteToSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
if (j >= RetrievalPointers->NumberOfPairs) if (j >= RetrievalPointers->NumberOfPairs)
{ {
CHECKPOINT1; CHECKPOINT1;
KeBugCheck(0); KEBUGCHECK(0);
} }
KeInitializeEvent(&Event, NotificationEvent, FALSE); KeInitializeEvent(&Event, NotificationEvent, FALSE);
@ -203,7 +203,7 @@ NTSTATUS MmReadFromSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
if (SwapEntry == 0) if (SwapEntry == 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
@ -213,13 +213,13 @@ NTSTATUS MmReadFromSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
if (i >= MAX_PAGING_FILES) if (i >= MAX_PAGING_FILES)
{ {
DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry); DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PagingFileList[i]->FileObject == NULL || if (PagingFileList[i]->FileObject == NULL ||
PagingFileList[i]->FileObject->DeviceObject == NULL) PagingFileList[i]->FileObject->DeviceObject == NULL)
{ {
DPRINT1("Bad paging file 0x%.8X\n", SwapEntry); DPRINT1("Bad paging file 0x%.8X\n", SwapEntry);
KeBugCheck(0); KEBUGCHECK(0);
} }
file_offset.QuadPart = offset * PAGE_SIZE; file_offset.QuadPart = offset * PAGE_SIZE;
@ -243,7 +243,7 @@ NTSTATUS MmReadFromSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
if (j >= RetrievalPointers->NumberOfPairs) if (j >= RetrievalPointers->NumberOfPairs)
{ {
CHECKPOINT1; CHECKPOINT1;
KeBugCheck(0); KEBUGCHECK(0);
} }
KeInitializeEvent(&Event, NotificationEvent, FALSE); KeInitializeEvent(&Event, NotificationEvent, FALSE);
Status = IoPageRead(PagingFileList[i]->FileObject, Status = IoPageRead(PagingFileList[i]->FileObject,
@ -364,7 +364,7 @@ MmFreeSwapPage(SWAPENTRY Entry)
KeAcquireSpinLock(&PagingFileListLock, &oldIrql); KeAcquireSpinLock(&PagingFileListLock, &oldIrql);
if (PagingFileList[i] == NULL) if (PagingFileList[i] == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
KeAcquireSpinLockAtDpcLevel(&PagingFileList[i]->AllocMapLock); KeAcquireSpinLockAtDpcLevel(&PagingFileList[i]->AllocMapLock);
@ -410,7 +410,7 @@ MmAllocSwapPage(VOID)
off = MiAllocPageFromPagingFile(PagingFileList[i]); off = MiAllocPageFromPagingFile(PagingFileList[i]);
if (off == 0xFFFFFFFF) if (off == 0xFFFFFFFF)
{ {
KeBugCheck(0); KEBUGCHECK(0);
KeReleaseSpinLock(&PagingFileListLock, oldIrql); KeReleaseSpinLock(&PagingFileListLock, oldIrql);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
@ -424,7 +424,7 @@ MmAllocSwapPage(VOID)
} }
KeReleaseSpinLock(&PagingFileListLock, oldIrql); KeReleaseSpinLock(&PagingFileListLock, oldIrql);
KeBugCheck(0); KEBUGCHECK(0);
return(0); return(0);
} }

View file

@ -1,4 +1,4 @@
/* $Id: pageop.c,v 1.16 2003/04/26 23:13:32 hyperion Exp $ /* $Id: pageop.c,v 1.17 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -67,7 +67,7 @@ MmReleasePageOp(PMM_PAGEOP PageOp)
PrevPageOp = PrevPageOp->Next; PrevPageOp = PrevPageOp->Next;
} }
KeReleaseSpinLock(&MmPageOpHashTableLock, oldIrql); KeReleaseSpinLock(&MmPageOpHashTableLock, oldIrql);
KeBugCheck(0); KEBUGCHECK(0);
} }
PMM_PAGEOP PMM_PAGEOP

View file

@ -1,4 +1,4 @@
/* $Id: pager.c,v 1.14 2003/07/17 16:57:39 silverblade Exp $ /* $Id: pager.c,v 1.15 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -69,7 +69,7 @@ MmPagerThreadMain(PVOID Ignored)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("PagerThread: Wait failed\n"); DbgPrint("PagerThread: Wait failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PagerThreadShouldTerminate) if (PagerThreadShouldTerminate)
{ {

View file

@ -1,4 +1,4 @@
/* $Id: pool.c,v 1.18 2003/07/11 01:23:15 royce Exp $ /* $Id: pool.c,v 1.19 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -62,7 +62,7 @@ EiAllocatePool(POOL_TYPE PoolType,
if ((PoolType==NonPagedPoolMustSucceed || if ((PoolType==NonPagedPoolMustSucceed ||
PoolType==NonPagedPoolCacheAlignedMustS) && Block==NULL) PoolType==NonPagedPoolCacheAlignedMustS) && Block==NULL)
{ {
KeBugCheck(MUST_SUCCEED_POOL_EMPTY); KEBUGCHECK(MUST_SUCCEED_POOL_EMPTY);
} }
return(Block); return(Block);
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: rmap.c,v 1.22 2003/07/19 08:02:51 hbirr Exp $ /* $Id: rmap.c,v 1.23 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top directory * COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -95,7 +95,7 @@ MmWritePagePhysicalAddress(PHYSICAL_ADDRESS PhysicalAddress)
Address = entry->Address; Address = entry->Address;
if ((((ULONG)Address) & 0xFFF) != 0) if ((((ULONG)Address) & 0xFFF) != 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Address < (PVOID)KERNEL_BASE) if (Address < (PVOID)KERNEL_BASE)
{ {
@ -144,7 +144,7 @@ MmWritePagePhysicalAddress(PHYSICAL_ADDRESS PhysicalAddress)
if (PageOp == NULL) if (PageOp == NULL)
{ {
DPRINT1("MmGetPageOp failed\n"); DPRINT1("MmGetPageOp failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
@ -205,7 +205,7 @@ MmWritePagePhysicalAddress(PHYSICAL_ADDRESS PhysicalAddress)
} }
else else
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Address < (PVOID)KERNEL_BASE) if (Address < (PVOID)KERNEL_BASE)
{ {
@ -238,7 +238,7 @@ MmPageOutPhysicalAddress(PHYSICAL_ADDRESS PhysicalAddress)
Address = entry->Address; Address = entry->Address;
if ((((ULONG)Address) & 0xFFF) != 0) if ((((ULONG)Address) & 0xFFF) != 0)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Address < (PVOID)KERNEL_BASE) if (Address < (PVOID)KERNEL_BASE)
@ -282,7 +282,7 @@ MmPageOutPhysicalAddress(PHYSICAL_ADDRESS PhysicalAddress)
if (PageOp == NULL) if (PageOp == NULL)
{ {
DPRINT1("MmGetPageOp failed\n"); DPRINT1("MmGetPageOp failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PageOp->Thread != PsGetCurrentThread()) if (PageOp->Thread != PsGetCurrentThread())
@ -341,7 +341,7 @@ MmPageOutPhysicalAddress(PHYSICAL_ADDRESS PhysicalAddress)
} }
else else
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Address < (PVOID)KERNEL_BASE) if (Address < (PVOID)KERNEL_BASE)
{ {
@ -360,7 +360,7 @@ MmSetCleanAllRmaps(PHYSICAL_ADDRESS PhysicalAddress)
if (current_entry == NULL) if (current_entry == NULL)
{ {
DPRINT1("MmIsDirtyRmap: No rmaps.\n"); DPRINT1("MmIsDirtyRmap: No rmaps.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
while (current_entry != NULL) while (current_entry != NULL)
{ {
@ -380,7 +380,7 @@ MmSetDirtyAllRmaps(PHYSICAL_ADDRESS PhysicalAddress)
if (current_entry == NULL) if (current_entry == NULL)
{ {
DPRINT1("MmIsDirtyRmap: No rmaps.\n"); DPRINT1("MmIsDirtyRmap: No rmaps.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
while (current_entry != NULL) while (current_entry != NULL)
{ {
@ -427,7 +427,7 @@ MmInsertRmap(PHYSICAL_ADDRESS PhysicalAddress, PEPROCESS Process,
new_entry = ExAllocateFromNPagedLookasideList(&RmapLookasideList); new_entry = ExAllocateFromNPagedLookasideList(&RmapLookasideList);
if (new_entry == NULL) if (new_entry == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
new_entry->Address = Address; new_entry->Address = Address;
new_entry->Process = Process; new_entry->Process = Process;
@ -439,7 +439,7 @@ MmInsertRmap(PHYSICAL_ADDRESS PhysicalAddress, PEPROCESS Process,
"address 0x%.8X\n", Process->UniqueProcessId, Address, "address 0x%.8X\n", Process->UniqueProcessId, Address,
MmGetPhysicalAddressForProcess(Process, Address), MmGetPhysicalAddressForProcess(Process, Address),
PhysicalAddress) PhysicalAddress)
KeBugCheck(0); KEBUGCHECK(0);
} }
ExAcquireFastMutex(&RmapListLock); ExAcquireFastMutex(&RmapListLock);
@ -462,7 +462,7 @@ MmDeleteAllRmaps(PHYSICAL_ADDRESS PhysicalAddress, PVOID Context,
if (current_entry == NULL) if (current_entry == NULL)
{ {
DPRINT1("MmDeleteAllRmaps: No rmaps.\n"); DPRINT1("MmDeleteAllRmaps: No rmaps.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmSetRmapListHeadPage(PhysicalAddress, NULL); MmSetRmapListHeadPage(PhysicalAddress, NULL);
while (current_entry != NULL) while (current_entry != NULL)
@ -508,5 +508,5 @@ MmDeleteRmap(PHYSICAL_ADDRESS PhysicalAddress, PEPROCESS Process,
previous_entry = current_entry; previous_entry = current_entry;
current_entry = current_entry->Next; current_entry = current_entry->Next;
} }
KeBugCheck(0); KEBUGCHECK(0);
} }

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: section.c,v 1.123 2003/07/14 20:14:11 hbirr Exp $ /* $Id: section.c,v 1.124 2003/07/21 21:53:53 royce Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c * FILE: ntoskrnl/mm/section.c
@ -111,7 +111,7 @@ MmFreeSectionSegments(PFILE_OBJECT FileObject)
{ {
DPRINT1("Image segment %d still referenced (was %d)\n", i, DPRINT1("Image segment %d still referenced (was %d)\n", i,
SectionSegments[i].ReferenceCount); SectionSegments[i].ReferenceCount);
KeBugCheck(0); KEBUGCHECK(0);
} }
MmFreePageTablesSectionSegment(&SectionSegments[i]); MmFreePageTablesSectionSegment(&SectionSegments[i]);
} }
@ -128,7 +128,7 @@ MmFreeSectionSegments(PFILE_OBJECT FileObject)
if (Segment->ReferenceCount != 0) if (Segment->ReferenceCount != 0)
{ {
DPRINT1("Data segment still referenced\n"); DPRINT1("Data segment still referenced\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmFreePageTablesSectionSegment(Segment); MmFreePageTablesSectionSegment(Segment);
ExFreePool(Segment); ExFreePool(Segment);
@ -173,7 +173,7 @@ MmSetPageEntrySectionSegment(PMM_SECTION_SEGMENT Segment,
TAG_SECTION_PAGE_TABLE); TAG_SECTION_PAGE_TABLE);
if (Table == NULL) if (Table == NULL)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
memset(Table, 0, sizeof(SECTION_PAGE_TABLE)); memset(Table, 0, sizeof(SECTION_PAGE_TABLE));
DPRINT("Table %x\n", Table); DPRINT("Table %x\n", Table);
@ -224,16 +224,16 @@ MmSharePageEntrySectionSegment(PMM_SECTION_SEGMENT Segment,
if (Entry == 0) if (Entry == 0)
{ {
DPRINT1("Entry == 0 for MmSharePageEntrySectionSegment\n"); DPRINT1("Entry == 0 for MmSharePageEntrySectionSegment\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (SHARE_COUNT_FROM_SSE(Entry) == MAX_SHARE_COUNT) if (SHARE_COUNT_FROM_SSE(Entry) == MAX_SHARE_COUNT)
{ {
DPRINT1("Maximum share count reached\n"); DPRINT1("Maximum share count reached\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (IS_SWAP_FROM_SSE(Entry)) if (IS_SWAP_FROM_SSE(Entry))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Entry = MAKE_SSE(PAGE_FROM_SSE(Entry), SHARE_COUNT_FROM_SSE(Entry) + 1); Entry = MAKE_SSE(PAGE_FROM_SSE(Entry), SHARE_COUNT_FROM_SSE(Entry) + 1);
MmSetPageEntrySectionSegment(Segment, Offset, Entry); MmSetPageEntrySectionSegment(Segment, Offset, Entry);
@ -251,16 +251,16 @@ MmUnsharePageEntrySectionSegment(PSECTION_OBJECT Section,
if (Entry == 0) if (Entry == 0)
{ {
DPRINT1("Entry == 0 for MmSharePageEntrySectionSegment\n"); DPRINT1("Entry == 0 for MmSharePageEntrySectionSegment\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (SHARE_COUNT_FROM_SSE(Entry) == 0) if (SHARE_COUNT_FROM_SSE(Entry) == 0)
{ {
DPRINT1("Zero share count for unshare\n"); DPRINT1("Zero share count for unshare\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (IS_SWAP_FROM_SSE(Entry)) if (IS_SWAP_FROM_SSE(Entry))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Entry = MAKE_SSE(PAGE_FROM_SSE(Entry), SHARE_COUNT_FROM_SSE(Entry) - 1); Entry = MAKE_SSE(PAGE_FROM_SSE(Entry), SHARE_COUNT_FROM_SSE(Entry) - 1);
/* /*
@ -295,7 +295,7 @@ MmUnsharePageEntrySectionSegment(PSECTION_OBJECT Section,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("CcRosUnmapCacheSegment failed, status = %x\n", Status); DPRINT1("CcRosUnmapCacheSegment failed, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }
@ -598,7 +598,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (PageOp == NULL) if (PageOp == NULL)
{ {
DPRINT1("MmGetPageOp failed\n"); DPRINT1("MmGetPageOp failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -622,12 +622,12 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (Status != STATUS_SUCCESS) if (Status != STATUS_SUCCESS)
{ {
DPRINT1("Failed to wait for page op, status = %x\n", Status); DPRINT1("Failed to wait for page op, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PageOp->Status == STATUS_PENDING) if (PageOp->Status == STATUS_PENDING)
{ {
DPRINT1("Woke for page op before completion\n"); DPRINT1("Woke for page op before completion\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmLockAddressSpace(AddressSpace); MmLockAddressSpace(AddressSpace);
/* /*
@ -691,7 +691,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmInsertRmap(Page, MemoryArea->Process, (PVOID)PAddress); MmInsertRmap(Page, MemoryArea->Process, (PVOID)PAddress);
} }
@ -721,7 +721,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (Segment->Flags & MM_PAGEFILE_SEGMENT) if (Segment->Flags & MM_PAGEFILE_SEGMENT)
{ {
DPRINT1("Found a swaped out private page in a pagefile section.\n"); DPRINT1("Found a swaped out private page in a pagefile section.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmUnlockSectionSegment(Segment); MmUnlockSectionSegment(Segment);
@ -731,7 +731,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &Page); Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &Page);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Mdl = MmCreateMdl(NULL, NULL, PAGE_SIZE); Mdl = MmCreateMdl(NULL, NULL, PAGE_SIZE);
@ -740,7 +740,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("MmReadFromSwapPage failed, status = %x\n", Status); DPRINT1("MmReadFromSwapPage failed, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
MmLockAddressSpace(AddressSpace); MmLockAddressSpace(AddressSpace);
Status = MmCreateVirtualMapping(AddressSpace->Process, Status = MmCreateVirtualMapping(AddressSpace->Process,
@ -761,7 +761,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT("MmCreateVirtualMapping failed, not out of memory\n"); DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
KeBugCheck(0); KEBUGCHECK(0);
return(Status); return(Status);
} }
@ -817,7 +817,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT("MmCreateVirtualMapping failed, not out of memory\n"); DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
KeBugCheck(0); KEBUGCHECK(0);
return(Status); return(Status);
} }
/* /*
@ -854,7 +854,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
} }
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Status = MmCreateVirtualMapping(AddressSpace->Process, Status = MmCreateVirtualMapping(AddressSpace->Process,
Address, Address,
@ -875,7 +875,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT("MmCreateVirtualMapping failed, not out of memory\n"); DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
KeBugCheck(0); KEBUGCHECK(0);
return(Status); return(Status);
} }
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress); MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
@ -951,7 +951,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (Entry != Entry1) if (Entry != Entry1)
{ {
DbgPrint("Someone changed ppte entry while we slept\n"); DbgPrint("Someone changed ppte entry while we slept\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -980,7 +980,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress); MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
@ -1011,7 +1011,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &Page); Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &Page);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
Mdl = MmCreateMdl(NULL, NULL, PAGE_SIZE); Mdl = MmCreateMdl(NULL, NULL, PAGE_SIZE);
@ -1019,7 +1019,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
Status = MmReadFromSwapPage(SwapEntry, Mdl); Status = MmReadFromSwapPage(SwapEntry, Mdl);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1036,7 +1036,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (Entry != Entry1) if (Entry != Entry1)
{ {
DbgPrint("Someone changed ppte entry while we slept\n"); DbgPrint("Someone changed ppte entry while we slept\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1069,7 +1069,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress); MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
if (Locked) if (Locked)
@ -1112,7 +1112,7 @@ MmNotPresentFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress); MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
if (Locked) if (Locked)
@ -1199,7 +1199,7 @@ MmAccessFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (PageOp == NULL) if (PageOp == NULL)
{ {
DPRINT1("MmGetPageOp failed\n"); DPRINT1("MmGetPageOp failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1220,12 +1220,12 @@ MmAccessFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (Status == STATUS_TIMEOUT) if (Status == STATUS_TIMEOUT)
{ {
DPRINT1("Failed to wait for page op, status = %x\n", Status); DPRINT1("Failed to wait for page op, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (PageOp->Status == STATUS_PENDING) if (PageOp->Status == STATUS_PENDING)
{ {
DPRINT1("Woke for page op before completion\n"); DPRINT1("Woke for page op before completion\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
* Restart the operation * Restart the operation
@ -1248,7 +1248,7 @@ MmAccessFaultSectionView(PMADDRESS_SPACE AddressSpace,
Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &NewPage); Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &NewPage);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1287,14 +1287,14 @@ MmAccessFaultSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT("MmCreateVirtualMapping failed, not out of memory\n"); DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
KeBugCheck(0); KEBUGCHECK(0);
return(Status); return(Status);
} }
MmInsertRmap(NewPage, AddressSpace->Process, (PVOID)PAddress); MmInsertRmap(NewPage, AddressSpace->Process, (PVOID)PAddress);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Locked) if (Locked)
{ {
@ -1405,7 +1405,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
DPRINT1("Trying to page out from physical memory section address 0x%X " DPRINT1("Trying to page out from physical memory section address 0x%X "
"process %d\n", Address, "process %d\n", Address,
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0); AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0);
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1416,7 +1416,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
{ {
DPRINT1("Trying to page out not-present page at (%d,0x%.8X).\n", DPRINT1("Trying to page out not-present page at (%d,0x%.8X).\n",
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, Address); AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, Address);
KeBugCheck(0); KEBUGCHECK(0);
} }
PhysicalAddress = PhysicalAddress =
MmGetPhysicalAddressForProcess(AddressSpace->Process, Address); MmGetPhysicalAddressForProcess(AddressSpace->Process, Address);
@ -1450,7 +1450,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
DPRINT1("SwapEntry != 0 was 0x%.8X at address 0x%.8X, " DPRINT1("SwapEntry != 0 was 0x%.8X at address 0x%.8X, "
"paddress 0x%.8X\n", SwapEntry, Address, "paddress 0x%.8X\n", SwapEntry, Address,
PhysicalAddress); PhysicalAddress);
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1459,7 +1459,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
if (Context.Private) if (Context.Private)
{ {
DPRINT1("Had private copy of read-only page.\n"); DPRINT1("Had private copy of read-only page.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1470,7 +1470,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
if (Context.WasDirty) if (Context.WasDirty)
{ {
DPRINT1("Had a dirty page of a read-only page.\n"); DPRINT1("Had a dirty page of a read-only page.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
PageOp->Status = STATUS_SUCCESS; PageOp->Status = STATUS_SUCCESS;
@ -1491,7 +1491,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
if(!MiIsPageFromCache(MemoryArea, Context.Offset)) if(!MiIsPageFromCache(MemoryArea, Context.Offset))
{ {
DPRINT1("Direct mapped non private page is not associated with the cache.\n") DPRINT1("Direct mapped non private page is not associated with the cache.\n")
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
else else
@ -1510,7 +1510,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
if (!(Context.Segment->Flags & MM_PAGEFILE_SEGMENT)) if (!(Context.Segment->Flags & MM_PAGEFILE_SEGMENT))
{ {
CHECKPOINT1; CHECKPOINT1;
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
@ -1536,7 +1536,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
"process %d address 0x%.8X\n", "process %d address 0x%.8X\n",
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0,
Address); Address);
KeBugCheck(0); KEBUGCHECK(0);
} }
else else
{ {
@ -1545,7 +1545,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
SwapEntry); SwapEntry);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
} }
@ -1555,7 +1555,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("CCRosUnmapCacheSegment failed, status = %x\n", Status); DPRINT1("CCRosUnmapCacheSegment failed, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
else else
@ -1580,7 +1580,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("CcRosUnmapCacheSegment failed, status = %x\n", Status); DPRINT1("CcRosUnmapCacheSegment failed, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
PageOp->Status = STATUS_SUCCESS; PageOp->Status = STATUS_SUCCESS;
KeSetEvent(&PageOp->CompletionEvent, IO_NO_INCREMENT, FALSE); KeSetEvent(&PageOp->CompletionEvent, IO_NO_INCREMENT, FALSE);
@ -1699,7 +1699,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
SwapEntry); SwapEntry);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
else else
@ -1773,7 +1773,7 @@ MmWritePageSectionView(PMADDRESS_SPACE AddressSpace,
DPRINT1("Trying to write back page from physical memory mapped at %X " DPRINT1("Trying to write back page from physical memory mapped at %X "
"process %d\n", Address, "process %d\n", Address,
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0); AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0);
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -1784,7 +1784,7 @@ MmWritePageSectionView(PMADDRESS_SPACE AddressSpace,
{ {
DPRINT1("Trying to page out not-present page at (%d,0x%.8X).\n", DPRINT1("Trying to page out not-present page at (%d,0x%.8X).\n",
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, Address); AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, Address);
KeBugCheck(0); KEBUGCHECK(0);
} }
PhysicalAddress = PhysicalAddress =
MmGetPhysicalAddressForProcess(AddressSpace->Process, Address); MmGetPhysicalAddressForProcess(AddressSpace->Process, Address);
@ -2109,7 +2109,7 @@ MmCreatePhysicalMemorySection(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Failed to create PhysicalMemory section\n"); DbgPrint("Failed to create PhysicalMemory section\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Status = ObReferenceObjectByHandle(PhysSectionH, Status = ObReferenceObjectByHandle(PhysSectionH,
SECTION_ALL_ACCESS, SECTION_ALL_ACCESS,
@ -2120,7 +2120,7 @@ MmCreatePhysicalMemorySection(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Failed to reference PhysicalMemory section\n"); DbgPrint("Failed to reference PhysicalMemory section\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
PhysSection->AllocationAttributes |= SEC_PHYSICALMEMORY; PhysSection->AllocationAttributes |= SEC_PHYSICALMEMORY;
ObDereferenceObject((PVOID)PhysSection); ObDereferenceObject((PVOID)PhysSection);
@ -3182,7 +3182,7 @@ MmFreeSectionPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address,
if (Status != STATUS_SUCCESS) if (Status != STATUS_SUCCESS)
{ {
DPRINT1("Failed to wait for page op, status = %x\n", Status); DPRINT1("Failed to wait for page op, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
MmLockAddressSpace(&MArea->Process->AddressSpace); MmLockAddressSpace(&MArea->Process->AddressSpace);
@ -3217,7 +3217,7 @@ MmFreeSectionPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address,
if (Segment->Flags & MM_PAGEFILE_SEGMENT) if (Segment->Flags & MM_PAGEFILE_SEGMENT)
{ {
DPRINT1("Found a swap entry for a page in a pagefile section.\n"); DPRINT1("Found a swap entry for a page in a pagefile section.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
MmFreeSwapPage(SwapEntry); MmFreeSwapPage(SwapEntry);
} }
@ -3232,7 +3232,7 @@ MmFreeSectionPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address,
if (Segment->Flags & MM_PAGEFILE_SEGMENT) if (Segment->Flags & MM_PAGEFILE_SEGMENT)
{ {
DPRINT1("Found a private page in a pagefile section.\n"); DPRINT1("Found a private page in a pagefile section.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
* Just dereference private pages * Just dereference private pages
@ -3532,7 +3532,7 @@ MmAllocateSection (IN ULONG Length)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to allocate page\n"); DbgPrint("Unable to allocate page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
Status = MmCreateVirtualMapping (NULL, Status = MmCreateVirtualMapping (NULL,
(Result + (i * PAGE_SIZE)), (Result + (i * PAGE_SIZE)),
@ -3542,7 +3542,7 @@ MmAllocateSection (IN ULONG Length)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DbgPrint("Unable to create virtual mapping\n"); DbgPrint("Unable to create virtual mapping\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
return ((PVOID)Result); return ((PVOID)Result);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: slab.c,v 1.8 2002/10/01 19:27:24 chorns Exp $ /* $Id: slab.c,v 1.9 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top directory * COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -182,7 +182,7 @@ ExAllocateSlabCache(PSLAB_CACHE Slab, BOOLEAN MayWait)
if (Page->FirstFreeBuffer == NULL) if (Page->FirstFreeBuffer == NULL)
{ {
DPRINT1("First free page had no free buffers.\n"); DPRINT1("First free page had no free buffers.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*
@ -284,7 +284,7 @@ ExFreeSlabCache(PSLAB_CACHE Slab, PVOID Object)
} }
} }
DPRINT1("Tried to free object not in cache.\n"); DPRINT1("Tried to free object not in cache.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
VOID VOID

View file

@ -328,7 +328,7 @@ VOID KiRemoveProfile(PKPROFILE Profile)
current_entry = current_entry->Flink; current_entry = current_entry->Flink;
} }
KeBugCheck(0); KEBUGCHECK(0);
} }
KeReleaseSpinLock(&ProfileListLock, oldIrql); KeReleaseSpinLock(&ProfileListLock, oldIrql);

View file

@ -1,4 +1,4 @@
/* $Id: object.c,v 1.64 2003/07/10 21:34:29 royce Exp $ /* $Id: object.c,v 1.65 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -597,13 +597,13 @@ ObpPerformRetentionChecks(POBJECT_HEADER Header)
{ {
CPRINT("Object %x/%x has invalid reference count (%d)\n", CPRINT("Object %x/%x has invalid reference count (%d)\n",
Header, HEADER_TO_BODY(Header), Header->RefCount); Header, HEADER_TO_BODY(Header), Header->RefCount);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Header->HandleCount < 0) if (Header->HandleCount < 0)
{ {
CPRINT("Object %x/%x has invalid handle count (%d)\n", CPRINT("Object %x/%x has invalid handle count (%d)\n",
Header, HEADER_TO_BODY(Header), Header->HandleCount); Header, HEADER_TO_BODY(Header), Header->HandleCount);
KeBugCheck(0); KEBUGCHECK(0);
} }
if (Header->RefCount == 0 && if (Header->RefCount == 0 &&
@ -612,7 +612,7 @@ ObpPerformRetentionChecks(POBJECT_HEADER Header)
{ {
if (Header->CloseInProcess) if (Header->CloseInProcess)
{ {
KeBugCheck(0); KEBUGCHECK(0);
return STATUS_UNSUCCESSFUL; return STATUS_UNSUCCESSFUL;
} }
Header->CloseInProcess = TRUE; Header->CloseInProcess = TRUE;
@ -660,7 +660,7 @@ ObfReferenceObject(IN PVOID Object)
if (Header->CloseInProcess) if (Header->CloseInProcess)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
InterlockedIncrement(&Header->RefCount); InterlockedIncrement(&Header->RefCount);

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.63 2003/07/11 01:23:15 royce Exp $ /* $Id: create.c,v 1.64 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -455,7 +455,7 @@ PsCreateTeb(HANDLE ProcessHandle,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("NtQueryVirtualMemory (Status %x)\n", Status); CPRINT("NtQueryVirtualMemory (Status %x)\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
/* FIXME: Race between this and the above check */ /* FIXME: Race between this and the above check */
if (Info.State == MEM_FREE) if (Info.State == MEM_FREE)

View file

@ -1,4 +1,4 @@
/* $Id: kill.c,v 1.61 2003/07/11 01:23:15 royce Exp $ /* $Id: kill.c,v 1.62 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -123,7 +123,7 @@ PsReapThreads(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("ObCreateHandle failed, status = %x\n", Status); DPRINT1("ObCreateHandle failed, status = %x\n", Status);
KeBugCheck(0); KEBUGCHECK(0);
} }
Offset = FIELD_OFFSET(TEB, DeallocationStack); Offset = FIELD_OFFSET(TEB, DeallocationStack);
Length = 0; Length = 0;
@ -189,7 +189,7 @@ PsTerminateCurrentThread(NTSTATUS ExitStatus)
KeAcquireSpinLock(&PiThreadListLock, &oldIrql); KeAcquireSpinLock(&PiThreadListLock, &oldIrql);
PsDispatchThreadNoLock(THREAD_STATE_TERMINATED_1); PsDispatchThreadNoLock(THREAD_STATE_TERMINATED_1);
DPRINT1("Unexpected return, CurrentThread %x PsGetCurrentThread() %x\n", CurrentThread, PsGetCurrentThread()); DPRINT1("Unexpected return, CurrentThread %x PsGetCurrentThread() %x\n", CurrentThread, PsGetCurrentThread());
KeBugCheck(0); KEBUGCHECK(0);
} }
VOID STDCALL VOID STDCALL

View file

@ -1,4 +1,4 @@
/* $Id: process.c,v 1.109 2003/07/11 01:23:15 royce Exp $ /* $Id: process.c,v 1.110 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -92,7 +92,7 @@ PsGetNextProcess(PEPROCESS OldProcess)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
CPRINT("PsGetNextProcess(): ObReferenceObjectByPointer failed\n"); CPRINT("PsGetNextProcess(): ObReferenceObjectByPointer failed\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
ObDereferenceObject(OldProcess); ObDereferenceObject(OldProcess);
@ -561,7 +561,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
DUPLICATE_SAME_ACCESS); DUPLICATE_SAME_ACCESS);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
else else
@ -581,7 +581,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
DUPLICATE_SAME_ACCESS); DUPLICATE_SAME_ACCESS);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
else else
@ -677,7 +677,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
{ {
MmUnlockAddressSpace(&Process->AddressSpace); MmUnlockAddressSpace(&Process->AddressSpace);
DPRINT1("Failed to protect the highest 64KB of the process address space\n"); DPRINT1("Failed to protect the highest 64KB of the process address space\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* Protect the lowest 64KB of the process address space */ /* Protect the lowest 64KB of the process address space */
@ -696,7 +696,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
{ {
MmUnlockAddressSpace(&Process->AddressSpace); MmUnlockAddressSpace(&Process->AddressSpace);
DPRINT1("Failed to protect the lowest 64KB of the process address space\n"); DPRINT1("Failed to protect the lowest 64KB of the process address space\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
#endif #endif
@ -715,7 +715,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
{ {
MmUnlockAddressSpace(&Process->AddressSpace); MmUnlockAddressSpace(&Process->AddressSpace);
DPRINT1("Failed to protect the memory above the shared user page\n"); DPRINT1("Failed to protect the memory above the shared user page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* Create the shared data page */ /* Create the shared data page */
@ -733,7 +733,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("Failed to create shared data page\n"); DPRINT1("Failed to create shared data page\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
/* /*

View file

@ -1,4 +1,4 @@
/* $Id: thread.c,v 1.114 2003/07/17 16:57:39 silverblade Exp $ /* $Id: thread.c,v 1.115 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -84,7 +84,7 @@ PsInsertIntoThreadList(KPRIORITY Priority, PETHREAD Thread)
if (Priority >= MAXIMUM_PRIORITY || Priority < 0) if (Priority >= MAXIMUM_PRIORITY || Priority < 0)
{ {
DPRINT1("Invalid thread priority\n"); DPRINT1("Invalid thread priority\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
InsertTailList(&PriorityListHead[Priority], &Thread->Tcb.QueueListEntry); InsertTailList(&PriorityListHead[Priority], &Thread->Tcb.QueueListEntry);
PiNrReadyThreads++; PiNrReadyThreads++;
@ -248,7 +248,7 @@ VOID PsDispatchThreadNoLock (ULONG NewThreadStatus)
} }
} }
CPRINT("CRITICAL: No threads are ready\n"); CPRINT("CRITICAL: No threads are ready\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
VOID STDCALL VOID STDCALL
@ -470,7 +470,7 @@ PsInitThreadManagment(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("PS: Failed to create reaper thread.\n"); DPRINT1("PS: Failed to create reaper thread.\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
} }
@ -507,7 +507,7 @@ KeSetPriorityThread (PKTHREAD Thread, KPRIORITY Priority)
if (Priority < 0 || Priority >= MAXIMUM_PRIORITY) if (Priority < 0 || Priority >= MAXIMUM_PRIORITY)
{ {
KeBugCheck(0); KEBUGCHECK(0);
} }
OldPriority = Thread->Priority; OldPriority = Thread->Priority;
@ -596,7 +596,7 @@ NtContinue(IN PCONTEXT Context,
if (TrapFrame == NULL) if (TrapFrame == NULL)
{ {
CPRINT("NtContinue called but TrapFrame was NULL\n"); CPRINT("NtContinue called but TrapFrame was NULL\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
KeContextToTrapFrame(Context, TrapFrame); KeContextToTrapFrame(Context, TrapFrame);
return(STATUS_SUCCESS); return(STATUS_SUCCESS);

View file

@ -1,4 +1,4 @@
/* $Id: w32call.c,v 1.6 2003/05/17 15:29:50 ekohl Exp $ /* $Id: w32call.c,v 1.7 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -117,7 +117,7 @@ NtCallbackReturn (PVOID Result,
KeStackSwitchAndRet((PVOID)(OldStack + 1)); KeStackSwitchAndRet((PVOID)(OldStack + 1));
/* Should never return. */ /* Should never return. */
KeBugCheck(0); KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }

View file

@ -1,4 +1,4 @@
/* $Id: nls.c,v 1.17 2003/07/11 01:23:15 royce Exp $ /* $Id: nls.c,v 1.18 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -98,7 +98,7 @@ RtlpCreateInitialNlsTables(VOID)
NlsOemCodePageTable == NULL || NlsOemCodePageTableSize == 0 || NlsOemCodePageTable == NULL || NlsOemCodePageTableSize == 0 ||
NlsUnicodeCasemapTable == NULL || NlsUnicodeCasemapTableSize == 0) NlsUnicodeCasemapTable == NULL || NlsUnicodeCasemapTableSize == 0)
{ {
KeBugCheckEx (0x32, STATUS_UNSUCCESSFUL, 1, 0, 0); KEBUGCHECKEX (0x32, STATUS_UNSUCCESSFUL, 1, 0, 0);
} }
RtlInitNlsTables (NlsAnsiCodePageTable, RtlInitNlsTables (NlsAnsiCodePageTable,
@ -139,7 +139,7 @@ RtlpCreateNlsSection(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("NtCreateSection() failed\n"); DPRINT1("NtCreateSection() failed\n");
KeBugCheckEx(0x32, Status, 1, 1, 0); KEBUGCHECKEX(0x32, Status, 1, 1, 0);
} }
Status = ObReferenceObjectByHandle(SectionHandle, Status = ObReferenceObjectByHandle(SectionHandle,
@ -152,7 +152,7 @@ RtlpCreateNlsSection(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("ObReferenceObjectByHandle() failed\n"); DPRINT1("ObReferenceObjectByHandle() failed\n");
KeBugCheckEx(0x32, Status, 1, 2, 0); KEBUGCHECKEX(0x32, Status, 1, 2, 0);
} }
Status = MmMapViewInSystemSpace(NlsSectionObject, Status = MmMapViewInSystemSpace(NlsSectionObject,
@ -162,7 +162,7 @@ RtlpCreateNlsSection(VOID)
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("MmMapViewInSystemSpace() failed\n"); DPRINT1("MmMapViewInSystemSpace() failed\n");
KeBugCheckEx(0x32, Status, 1, 3, 0); KEBUGCHECKEX(0x32, Status, 1, 3, 0);
} }
DPRINT("NlsSection: Base %p Size %lx\n", DPRINT("NlsSection: Base %p Size %lx\n",

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: timer.c,v 1.5 2003/07/06 23:04:19 hyperion Exp $ /* $Id: timer.c,v 1.6 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -331,7 +331,7 @@ TimerThreadMain(
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("Error waiting in TimerThreadMain\n"); DPRINT1("Error waiting in TimerThreadMain\n");
KeBugCheck(0); KEBUGCHECK(0);
} }
ExAcquireFastMutex(&Mutex); ExAcquireFastMutex(&Mutex);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: window.c,v 1.64 2003/07/17 07:49:15 gvg Exp $ /* $Id: window.c,v 1.65 2003/07/21 21:53:53 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -1241,7 +1241,7 @@ DestroyThreadWindows(struct _ETHREAD *Thread)
if (Win32Thread->WindowListHead.Flink == LastHead) if (Win32Thread->WindowListHead.Flink == LastHead)
{ {
/* Window at head of list was not removed, should never happen, infinite loop */ /* Window at head of list was not removed, should never happen, infinite loop */
KeBugCheck(0); KEBUGCHECK(0);
} }
ExReleaseFastMutexUnsafe(&Win32Thread->WindowListLock); ExReleaseFastMutexUnsafe(&Win32Thread->WindowListLock);
} }