-/* $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
* written by Rex Jolliff
default:
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
Irp->IoStatus.Information = 0;
- KeBugCheck((ULONG)Irp);
+ KEBUGCHECK((ULONG)Irp);
IoCompleteRequest(Irp, IO_NO_INCREMENT);
IoStartNextPacket(DeviceObject, FALSE);
break;
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DbgPrint("CcRosInitializeFileCache failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ObDereferenceObject(FileObject);
if (!NT_SUCCESS(Status))
{
DbgPrint("CcRosInitializeFileCache failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Fcb->Flags |= FCB_CACHE_INITIALIZED;
}
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
default:
DbgPrint("RunLength size of %hu not implemented!\n", RunHeader & 0x0F);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
switch (RunHeader >> 4)
default:
DbgPrint("RunStart size of %hu not implemented!\n", RunHeader >> 4);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
DbgPrint(" AllocatedSize %I64d DataSize %I64d\n", NresAttr->AllocatedSize, NresAttr->DataSize);
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DbgPrint("CcRosInitializeFileCache failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ObDereferenceObject(FileObject);
if (!NT_SUCCESS(Status))
{
DbgPrint("CcRosInitializeFileCache failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Fcb->Flags |= FCB_CACHE_INITIALIZED;
}
-/* $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
if (!NT_SUCCESS (status))
{
DbgPrint ("CcRosInitializeFileCache failed\n");
- KeBugCheck (0);
+ KEBUGCHECK (0);
}
fcb->Flags |= FCB_CACHE_INITIALIZED;
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
(DeviceExt->FatInfo.BytesPerCluster % PAGE_SIZE) != 0)
{
DbgPrint("(%s:%d) Invalid cluster size\n", __FILE__, __LINE__);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
else if (DeviceExt->FatInfo.BytesPerCluster < PAGE_SIZE &&
(PAGE_SIZE % DeviceExt->FatInfo.BytesPerCluster) != 0)
{
DbgPrint("(%s:%d) Invalid cluster size2\n", __FILE__, __LINE__);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return(STATUS_SUCCESS);
-/* $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
* PROJECT: ReactOS kernel
if (FirstCluster == 0)
{
DbgPrint("OffsetToCluster is called with FirstCluster = 0!\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (FirstCluster == 1)
-/* $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
* PROJECT: ReactOS kernel
if( AdapterObject->Inuse == FALSE )
{
DbgPrint( "Attempting to IoFreeAdapterChannel on a channel not in use\n" );
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
AdapterObject->Inuse = FALSE;
if( AdapterObject->Buffer )
-/* $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
* PROJECT: ReactOS kernel
{
DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
__FILE__, __LINE__, NewIrql, CurrentIrql);
- KeBugCheck(0);
+ KEBUGCHECK(0);
for(;;);
}
{
DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
__FILE__,__LINE__,CurrentIrql,NewIrql);
- KeBugCheck (0);
+ KEBUGCHECK (0);
for(;;);
}
-/* $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
* PROJECT: ReactOS kernel
tmp = IOAPICRead(apic, 0);
if (GET_IOAPIC_ID(tmp) != IOAPICMap[apic].ApicId) {
DPRINT1("Could not set I/O APIC ID!\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
entry = irq_2_pin + entry->next;
if (++first_free_entry >= PIN_MAP_SIZE) {
DPRINT1("Ohh no!");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
entry->apic = apic;
current_vector = FIRST_DEVICE_VECTOR + vector_offset;
} else if (current_vector == FIRST_SYSTEM_VECTOR) {
DPRINT1("Ran out of interrupt sources!");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
vector = current_vector;
DPRINT("APIC found\n");
} else {
DPRINT1("No APIC found\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
CPUMap[BootCPU].MaxLVT = APICGetMaxLVT();
DPRINT("Max # of I/O APICs (%d) exceeded (found %d).\n",
MAX_IOAPIC, IOAPICCount);
DPRINT1("Recompile with bigger MAX_IOAPIC!.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
IOAPICMap[IOAPICCount].ApicId = m->ApicId;
IOAPICMap[IOAPICCount].ApicVersion = m->ApicVersion;
m->SrcBusIrq, m->DstApicId, m->DstApicInt);
if (IRQCount > MAX_IRQ_SOURCE) {
DPRINT1("Max # of irq sources exceeded!!\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
IRQMap[IRQCount] = *m;
*/
if ((m->IrqType == INT_EXTINT) && (m->DstApicLInt != 0)) {
DPRINT1("Invalid MP table!\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if ((m->IrqType == INT_NMI) && (m->DstApicLInt != 1)) {
DPRINT1("Invalid MP table!\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
DbgPrint("Bad MP configuration block signature: %c%c%c%c\n",
pc[0], pc[1], pc[2], pc[3]);
- KeBugCheck(0);
+ KEBUGCHECK(0);
return;
}
if (MPChecksum((PUCHAR)Table, Table->Length))
{
DbgPrint("Bad MP configuration block checksum\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return;
}
{
DbgPrint("Bad MP configuration table version (%d)\n",
Table->Specification);
- KeBugCheck(0);
+ KEBUGCHECK(0);
return;
}
{
DbgPrint("APIC base address is at 0x%X. " \
"I cannot handle non-standard adresses\n", APICBase);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Entry = (PUCHAR)((PVOID)Table + sizeof(MP_CONFIGURATION_TABLE));
}
default:
DbgPrint("Unknown entry in MPC table\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
EBDA <<= 4;
if (!HaliScanForMPConfigTable((ULONG)EBDA, 0x1000)) {
DbgPrint("No multiprocessor compliant system found.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
if (KeGetCurrentKPCR ()->Irql > HIGH_LEVEL)
{
DPRINT1 ("CurrentIrql %x\n", KeGetCurrentKPCR ()->Irql);
- KeBugCheck (0);
+ KEBUGCHECK (0);
for(;;);
}
if (NewIrql > HIGH_LEVEL)
{
DPRINT1 ("NewIrql %x\n", NewIrql);
- KeBugCheck (0);
+ KEBUGCHECK (0);
for(;;);
}
if (NewIrql > KeGetCurrentIrql ())
{
DPRINT1 ("NewIrql %x CurrentIrql %x\n", NewIrql, KeGetCurrentIrql ());
- KeBugCheck (0);
+ KEBUGCHECK (0);
for(;;);
}
if (NewIrql < KeGetCurrentIrql ())
{
DPRINT1 ("CurrentIrql %x NewIrql %x\n", KeGetCurrentIrql (), NewIrql);
- KeBugCheck (0);
+ KEBUGCHECK (0);
for(;;);
}
* ARGUMENTS:
* BugCheckCode = Specifies the reason for the bug check
* 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);
-
+#define KEBUGCHECK(a) DPRINT1("KeBugCheck at %s:%i\n",__FILE__,__LINE__), KeBugCheck(a)
/*
* FUNCTION: Brings the system down in a controlled manner when an
* BugCheckCode = Specifies the reason for the bug check
* BugCheckParameter[1-4] = Additional information about bug
* 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,
ULONG BugCheckParameter1,
ULONG BugCheckParameter2,
ULONG BugCheckParameter3,
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);
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DbgPrint("Can't allocate CcZeroPage.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Status = MiZeroPage(CcZeroPage);
if (!NT_SUCCESS(Status))
{
DbgPrint("Can't zero out CcZeroPage.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
{
DPRINT1("Anyone has referenced a cache segment behind the new size.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
if (!NT_SUCCESS(Status))
{
DPRINT1("CcRosInternalFreeCacheSegment failed, status = %x\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/cc/view.c
CacheSeg = CcRosLookupCacheSegment(Bcb, FileOffset);
if (CacheSeg == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (!CacheSeg->Dirty)
{
if (StartingOffset == 0xffffffff)
{
DPRINT1("Out of CacheSeg mapping space\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
current->BaseAddress = CiCacheSegMappingRegionBase + StartingOffset * PAGE_SIZE;
MmUnlockAddressSpace(MmGetKernelAddressSpace());
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
#endif
for (i = 0; i < (Bcb->CacheSegmentSize / PAGE_SIZE); i++)
Status = MmRequestPageMemoryConsumer(MC_CACHE, TRUE, &Page);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Status = MmCreateVirtualMapping(NULL,
TRUE);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
return(STATUS_SUCCESS);
{
CPRINT("Bad fileoffset %x should be multiple of %x",
FileOffset, Bcb->CacheSegmentSize);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return(CcRosGetCacheSegment(Bcb,
if (!NT_SUCCESS(Status))
{
DbgPrint("LazyCloseThread: Wait failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
break;
}
if (LazyCloseThreadShouldTerminate)
MmUnlockAddressSpace(MmGetKernelAddressSpace());
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Buffer = ExAllocatePool(NonPagedPool, CI_CACHESEG_MAPPING_REGION_SIZE / (PAGE_SIZE * 8));
{
/* There is no way to fix the hive without log file - BSOD! */
DPRINT("Hive header inconsistent and no log file available!\n");
- KeBugCheck(CONFIG_LIST_FAILED);
+ KEBUGCHECK(CONFIG_LIST_FAILED);
}
Status = STATUS_SUCCESS;
HiveHeader->UpdateCounter1 != HiveHeader->UpdateCounter2)
{
DPRINT("Hive file and log file are inconsistent!\n");
- KeBugCheck(CONFIG_LIST_FAILED);
+ KEBUGCHECK(CONFIG_LIST_FAILED);
}
/* Log file damaged but hive is okay */
-/* $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
* PROJECT: ReactOS kernel
Status = CmiCreateCurrentControlSetLink();
if (!NT_SUCCESS(Status))
{
- KeBugCheck(CONFIG_INITIALIZATION_FAILED);
+ KEBUGCHECK(CONFIG_INITIALIZATION_FAILED);
}
/* Set PICE 'Start' value to 1, if PICE debugging is enabled */
sizeof(ULONG));
if (!NT_SUCCESS(Status))
{
- KeBugCheck(CONFIG_INITIALIZATION_FAILED);
+ KEBUGCHECK(CONFIG_INITIALIZATION_FAILED);
}
}
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/dbg/kdb.c
ULONG
DbgBugCheckCommand(ULONG Argc, PCH Argv[], PKTRAP_FRAME Tf)
{
- KeBugCheck(1);
+ KEBUGCHECK(1);
return(1);
}
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/dbg/profile.c
if (!ExInitializeHashTable(&Hashtable, 17, KdbProfilerKeyCompare, TRUE))
{
DPRINT1("ExInitializeHashTable() failed.");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
InitializeListHead(&SamplesListHead);
-/* $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
* PROJECT: ReactOS kernel
TAG_OWNER_TABLE);
if (Resource->OwnerTable == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(FALSE);
}
memset(Resource->OwnerTable,0,sizeof(OWNER_ENTRY)*3);
TAG_OWNER_TABLE);
if (freeEntry == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(FALSE);
}
memcpy(freeEntry,Resource->OwnerTable,
if (!(Resource->Flag & ResourceOwnedExclusive))
{
/* Might not be what the caller expects, better bug check */
- KeBugCheck(0);
+ KEBUGCHECK(0);
KeReleaseSpinLock(&Resource->SpinLock, oldIrql);
return;
}
if (ExWindowStationObjectType == NULL)
{
CPRINT("Could not create window station object type\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ExWindowStationObjectType->Tag = TAG('W', 'I', 'N', 'S');
if (ExDesktopObjectType == NULL)
{
CPRINT("Could not create desktop object type\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ExDesktopObjectType->Tag = TAG('D', 'E', 'S', 'K');
ULONG BugCheckParameter3,
ULONG BugCheckParameter4,
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
KiDumpTrapFrame(PKTRAP_FRAME Tf, ULONG ExceptionNr, ULONG cr2);
-/* $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
* PROJECT: ReactOS kernel
{
/* FIXME: What do we do? Unload the driver or just disable the device? */
DbgPrint("An FDO was not attached\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/* FIXME: Put some resources in the IRP for the device */
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
CPRINT("IoCreateDriverObject() failed\n");
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
}
Status = IoCreateDevice(
if (!NT_SUCCESS(Status))
{
CPRINT("IoCreateDevice() failed\n");
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
}
Status = IopCreateDeviceNode(
if (!NT_SUCCESS(Status))
{
CPRINT("Insufficient resources\n");
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
}
IopRootDeviceNode->Pdo->Flags |= DO_BUS_ENUMERATED_DEVICE;
-/* $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
* PROJECT: ReactOS kernel
&PnpRootDeviceObject);
if (!NT_SUCCESS(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;
if (!PnpRootDeviceObject) {
CPRINT("PnpRootDeviceObject 0x%X\n", PnpRootDeviceObject);
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
}
if (!PhysicalDeviceObject) {
CPRINT("PhysicalDeviceObject 0x%X\n", PhysicalDeviceObject);
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
}
InitializeListHead(&DeviceExtension->DeviceListHead);
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status);
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
return(Status);
}
DeviceData = DiskDeviceObject->DeviceExtension;
if (!NT_SUCCESS(Status))
{
CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status);
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
return(Status);
}
DeviceData = CdromDeviceObject->DeviceExtension;
if (!NT_SUCCESS(Status))
{
CPRINT("IoCreateDevice() failed with status 0x%.08x\n", Status);
- KeBugCheck(PHASE1_INITIALIZATION_FAILED);
+ KEBUGCHECK(PHASE1_INITIALIZATION_FAILED);
return(Status);
}
DeviceData = TapeDeviceObject->DeviceExtension;
-/* $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
* PROJECT: ReactOS kernel
/* B - Bug check the system. */
else if (Code == 1)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
* C - Dump statistics about the distribution of tagged blocks in
if (Apc->NormalRoutine == NULL)
{
DbgPrint("Exiting kernel with kernel APCs pending.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Apc->Inserted = FALSE;
Thread->Tcb.ApcState.KernelApcInProgress++;
if (Apc->Inserted)
{
DbgPrint("KeInsertQueueApc(): multiple APC insertations\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
TargetThread = Apc->Thread;
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/ke/catch.c
/* If that fails then bugcheck */
DPRINT1("Could not terminate thread\n");
- KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED);
+ KEBUGCHECK(KMODE_EXCEPTION_NOT_HANDLED);
}
else
{
if (Value != ExceptionContinueExecution ||
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);
}
}
}
if (Gdt == NULL)
{
DbgPrint("No GDT (%d)\n", Pcr->ProcessorNumber);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
* along with this program; if not, write to the Free Software
* 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
* PURPOSE: Microkernel thread support
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to create thread stack\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
for (i = 0; i < (MM_STACK_SIZE / PAGE_SIZE); i++)
{
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE, &Page);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Status = MmCreateVirtualMapping(NULL,
KernelStack + (i * PAGE_SIZE),
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/ke/main.c
CPRINT("NtOpenSymbolicLinkObject() failed (Status %x)\n",
Status);
- KeBugCheck (0x0);
+ KEBUGCHECK (0x0);
}
Status = NtQuerySymbolicLinkObject (Handle,
CPRINT("NtQuerySymbolicObject() failed (Status %x)\n",
Status);
- KeBugCheck (0x0);
+ KEBUGCHECK (0x0);
}
DPRINT("Length: %lu ArcDeviceName: %wZ\n", Length, &ArcDeviceName);
if (BootDriveFound == FALSE)
{
DbgPrint("No system drive found!\n");
- KeBugCheck (0x0);
+ KEBUGCHECK (0x0);
}
}
KeLowerIrql(PASSIVE_LEVEL);
if (!SeInit1())
- KeBugCheck(SECURITY_INITIALIZATION_FAILED);
+ KEBUGCHECK(SECURITY_INITIALIZATION_FAILED);
ObInit();
if (!SeInit2())
- KeBugCheck(SECURITY1_INITIALIZATION_FAILED);
+ KEBUGCHECK(SECURITY1_INITIALIZATION_FAILED);
PiInitProcessManager();
if (BootDriverCount == 0)
{
DbgPrint("No boot drivers available.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/* Create ARC names for boot devices */
CPRINT("CommandLine: %s\n", (PUCHAR)KeLoaderBlock.CommandLine);
Status = IoCreateSystemRootLink((PUCHAR)KeLoaderBlock.CommandLine);
if (!NT_SUCCESS(Status))
- KeBugCheck(INACCESSIBLE_BOOT_DEVICE);
+ KEBUGCHECK(INACCESSIBLE_BOOT_DEVICE);
#ifdef DBGPRINT_FILE_LOG
/* On the assumption that we can now access disks start up the debug
&ThreadHandle);
if (!NT_SUCCESS(Status))
{
- KeBugCheckEx(SESSION4_INITIALIZATION_FAILED, Status, 0, 0, 0);
+ KEBUGCHECKEX(SESSION4_INITIALIZATION_FAILED, Status, 0, 0, 0);
}
/*
&Timeout);
if (Status != STATUS_TIMEOUT)
{
- KeBugCheckEx(SESSION5_INITIALIZATION_FAILED, Status, 0, 0, 0);
+ KEBUGCHECKEX(SESSION5_INITIALIZATION_FAILED, Status, 0, 0, 0);
}
NtClose(ThreadHandle);
{
/* Never returns */
ExpInitializeExecutive();
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/* Do application processor initialization */
KeApplicationProcessorInit();
PsApplicationProcessorInit();
KeLowerIrql(PASSIVE_LEVEL);
PsIdleThreadMain(NULL);
- KeBugCheck(0);
+ KEBUGCHECK(0);
for(;;);
}
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/ke/mutex.c
if (Mutex->OwnerThread != KeGetCurrentThread())
{
DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutex %p\n", Mutex);
- KeBugCheck(0); /* THREAD_NOT_MUTEX_OWNER */
+ KEBUGCHECK(0); /* THREAD_NOT_MUTEX_OWNER */
}
Mutex->Header.SignalState++;
assert(Mutex->Header.SignalState <= 1);
DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutant->OwnerThread %p CurrentThread %p\n",
Mutant->OwnerThread,
KeGetCurrentThread());
- KeBugCheck(0); /* THREAD_NOT_MUTEX_OWNER */
+ KEBUGCHECK(0); /* THREAD_NOT_MUTEX_OWNER */
}
Mutant->Header.SignalState++;
assert(Mutant->Header.SignalState <= 1);
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/ke/process.c
if (CurrentThread->OldProcess != NULL)
{
DbgPrint("Invalid attach (thread is already attached)\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeRaiseIrql(DISPATCH_LEVEL, &oldlvl);
if (CurrentThread->OldProcess == NULL)
{
DbgPrint("Invalid detach (thread was not attached)\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeRaiseIrql(DISPATCH_LEVEL, &oldlvl);
-/* $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
* PROJECT: ReactOS kernel
if (*SpinLock >= 2)
{
DbgPrint("Lock %x has bad value %x\n", SpinLock, *SpinLock);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
while ((i = InterlockedExchange((LONG *)SpinLock, 1)) == 1)
{
#ifndef MP
DbgPrint("Spinning on spinlock %x current value %x\n", SpinLock, i);
- KeBugCheck(0);
+ KEBUGCHECK(0);
#else /* not MP */
/* Avoid reading the value again too fast */
#endif /* MP */
if (*SpinLock != 1)
{
DbgPrint("Releasing unacquired spinlock %x\n", SpinLock);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
(void)InterlockedExchange((LONG *)SpinLock, 0);
}
-/* $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
* PROJECT: ReactOS kernel
if (KeGetCurrentIrql() > DISPATCH_LEVEL)
{
DPRINT1("-----------------------------\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Thread == NULL)
{
DPRINT("Thread == NULL!\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Abandoned = Mutex->Abandoned;
if (Thread != NULL)
default:
DbgPrint("(%s:%d) Dispatcher object %x has unknown type\n", __FILE__, __LINE__, hdr);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return Abandoned;
return(KeDispatcherObjectWakeOne(hdr));
}
DbgPrint("Dispatcher object %x has unknown type %d\n", hdr, hdr->Type);
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(FALSE);
}
-/* $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
* PROJECT: ReactOS kernel
DbgPrint("Export not found for %d:%s\n",
Hint,
Name != NULL ? Name : "(Ordinal)");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return(ExportAddress);
ps("Export not found for %d:%s\n",
Hint,
Name != NULL ? Name : "(Ordinal)");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return ExportAddress;
}
-/* $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
* PROJECT: ReactOS kernel
if (Port == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MessageReply = ExAllocatePoolWithTag(NonPagedPool, sizeof(QUEUEDMESSAGE),
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/anonmem.c
if (PhysicalAddress.QuadPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (PageOp == NULL)
{
DPRINT1("MmGetPageOp failed");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (Status != STATUS_SUCCESS)
{
DPRINT1("Failed to wait for page op\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PageOp->Status == STATUS_PENDING)
{
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 (!NT_SUCCESS(Status))
{
DPRINT1("MmRequestPageMemoryConsumer failed, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
Status = MmReadFromSwapPage(SwapEntry, Mdl);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmSetSavedSwapEntryPage(Page, SwapEntry);
}
if (!NT_SUCCESS(Status))
{
DPRINT1("MmCreateVirtualMapping failed, not out of memory\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(Status);
}
if (Status != STATUS_SUCCESS)
{
DPRINT1("Failed to wait for page op\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmLockAddressSpace(&Process->AddressSpace);
MmReleasePageOp(PageOp);
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/balance.c
if (Page.QuadPart == 0LL)
{
DPRINT1("Tried to release page zero.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&AllocationListLock, &oldIrql);
Status = MiMemoryConsumers[i].Trim(Target, 0, &NrFreedPages);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Target = Target - NrFreedPages;
}
KeReleaseSpinLock(&AllocationListLock, oldIrql);
if (Page.QuadPart == 0LL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
*AllocatedPage = Page;
InterlockedDecrement((LONG *)&MiPagesRequired);
Page = Request.Page;
if (Page.QuadPart == 0LL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmTransferOwnershipPage(Page, Consumer);
*AllocatedPage = Page;
Page = MmAllocPage(Consumer, 0);
if (Page.QuadPart == 0LL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
*AllocatedPage = Page;
if (MmPageArray[Start].MapCount != 0)
{
DbgPrint("Transfering mapped page.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
RemoveEntryList(&MmPageArray[Start].ListEntry);
InsertTailList(&UsedPageListHeads[NewConsumer],
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
memset((PVOID)MmPageArray + (i * PAGE_SIZE), 0, PAGE_SIZE);
if (MmPageArray[Start].Flags.Type == MM_PHYSICAL_PAGE_FREE)
{
DbgPrint("Mapping non-used page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].MapCount++;
KeReleaseSpinLock(&PageListLock, oldIrql);
if (MmPageArray[Start].Flags.Type == MM_PHYSICAL_PAGE_FREE)
{
DbgPrint("Unmapping non-used page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (MmPageArray[Start].MapCount == 0)
{
DbgPrint("Unmapping not mapped page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].MapCount--;
KeReleaseSpinLock(&PageListLock, oldIrql);
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&PageListLock, &oldIrql);
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Referencing non-used page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].ReferenceCount++;
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&PageListLock, &oldIrql);
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Getting reference count for free page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
RCount = MmPageArray[Start].ReferenceCount;
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED &&
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&PageListLock, &oldIrql);
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Dereferencing free page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].ReferenceCount--;
if (MmPageArray[Start].RmapListHead != NULL)
{
DbgPrint("Freeing page with rmap entries.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (MmPageArray[Start].MapCount != 0)
{
DbgPrint("Freeing mapped page (0x%I64x count %d)\n",
PhysicalAddress, MmPageArray[Start].MapCount);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (MmPageArray[Start].LockCount > 0)
{
DbgPrint("Freeing locked page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (MmPageArray[Start].SavedSwapEntry != 0)
{
DbgPrint("Freeing page with swap entry.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Freeing page with flags %x\n",
MmPageArray[Start].Flags.Type);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].Flags.Type = MM_PHYSICAL_PAGE_FREE;
InsertTailList(&FreeUnzeroedPageListHead,
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&PageListLock, &oldIrql);
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Getting lock count for free page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
LockCount = MmPageArray[Start].LockCount;
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&PageListLock, &oldIrql);
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Locking free page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].LockCount++;
if (PhysicalAddress.u.LowPart == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLock(&PageListLock, &oldIrql);
if (MmPageArray[Start].Flags.Type != MM_PHYSICAL_PAGE_USED)
{
DbgPrint("Unlocking free page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmPageArray[Start].LockCount--;
if (PageDescriptor->Flags.Type != MM_PHYSICAL_PAGE_FREE)
{
DbgPrint("Got non-free page from freelist\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PageDescriptor->MapCount != 0)
{
DbgPrint("Got mapped page from freelist\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PageDescriptor->Flags.Type = MM_PHYSICAL_PAGE_USED;
PageDescriptor->Flags.Consumer = Consumer;
if (PageDescriptor->MapCount != 0)
{
DbgPrint("Returning mapped page.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return(PageOffset);
}
if (!NT_SUCCESS(Status))
{
DbgPrint("ZeroPageThread: Wait failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL);
}
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
memset(Address, 0, PAGE_SIZE);
if (PageDescriptor->MapCount != 0)
{
DbgPrint("Mapped page on freelist.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PageDescriptor->Flags.Type = MM_PHYSICAL_PAGE_FREE;
InsertHeadList(&FreeZeroedPageListHead, ListEntry);
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/i386/page.c
else
{
DPRINT1("Unknown main protection type.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (!(flProtect & PAGE_SYSTEM))
{
*(ADDR_TO_PDE(Address)) = 0;
if (Address >= (PVOID)KERNEL_BASE)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
// MmGlobalKernelPageDirectory[ADDR_TO_PDE_OFFSET(Address)] = 0;
}
FLUSH_TLB;
{
DbgPrint("Page table entry not clear at %x/%x (is %x)\n",
((ULONG)Address / 4*1024*1024), i, PageTable[i]);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
npage = *(ADDR_TO_PDE(Address));
if (Address >= (PVOID)KERNEL_BASE)
{
// MmGlobalKernelPageDirectory[ADDR_TO_PDE_OFFSET(Address)] = 0;
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
else
{
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, MayWait, &npage);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
oldIrql = KeRaiseIrqlToSynchLevel();
/* An other thread can set this pde entry, we must check again */
}
if ((*Pde) == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
WasValid = (PAGE_MASK(Pte) != 0);
if (!WasValid)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &npage);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MiZeroPage(npage);
oldIrql = KeRaiseIrqlToSynchLevel();
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &npage);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MiZeroPage(npage);
*Pde = npage.u.LowPart | PA_PRESENT | PA_READWRITE | PA_USER;
if (((ULONG)Address & ~0xFFF) < KERNEL_BASE)
{
DPRINT1("MmIsAccessedAndResetAccessPage is called for user space without a process.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
CurrentProcess = NULL;
}
if (((ULONG)Address & ~0xFFF) < KERNEL_BASE)
{
DPRINT1("MmSetCleanPage is called for user space without a process.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
CurrentProcess = NULL;
}
if (((ULONG)Address & ~0xFFF) < KERNEL_BASE)
{
DPRINT1("MmSetDirtyPage is called for user space without a process.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
CurrentProcess = NULL;
}
if (Process == NULL && Address < (PVOID)KERNEL_BASE)
{
DPRINT1("No process\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Process != NULL && Address >= (PVOID)KERNEL_BASE)
{
DPRINT1("Setting kernel address with process context\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Attributes = ProtectToPTE(flProtect);
}
if (PAGE_MASK((*Pte)) != 0 && !((*Pte) & PA_PRESENT))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PAGE_MASK((*Pte)) != 0)
{
if (Process == NULL && Address < (PVOID)KERNEL_BASE)
{
DPRINT1("No process\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Process != NULL && Address >= (PVOID)KERNEL_BASE)
{
DPRINT1("Setting kernel address with process context\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (SwapEntry & (1 << 31))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Process != NULL && Process != CurrentProcess)
if (Process == NULL && Address < (PVOID)KERNEL_BASE)
{
DPRINT1("No process\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Process != NULL && Address >= (PVOID)KERNEL_BASE)
{
DPRINT1("Setting kernel address with process context\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmMarkPageMapped(PhysicalAddress);
DPRINT1("Setting physical address but not allowing access at address "
"0x%.8X with attributes %x/%x.\n",
Address, Attributes, flProtect);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Process != NULL && Process != CurrentProcess)
}
if (PAGE_MASK((*Pte)) != 0 && !((*Pte) & PA_PRESENT))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PAGE_MASK((*Pte)) != 0)
{
if (!MmIsUsablePage(PhysicalAddress))
{
DPRINT1("Page at address %x not usable\n", PhysicalAddress);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return(MmCreateVirtualMappingUnsafe(Process,
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/iospace.c
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmMarkPageMapped((PHYSICAL_ADDRESS) (PhysicalAddress.QuadPart +
(i * PAGE_SIZE)));
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return Addr;
}
if (Base == 0xFFFFFFFF)
{
DbgPrint("CRITICAL: Out of non-paged pool space\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (AllocMapHint == Base)
{
BaseAddress);
if (MemoryArea == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL);
}
if (AddressSpace->Process != NULL &&
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
MmUnlockAddressSpace(MmGetKernelAddressSpace());
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmUnlockAddressSpace(MmGetKernelAddressSpace());
if (AccessMode == UserMode)
{
DPRINT1("MDL mapping to user-mode not yet handled.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/* Calculate the number of pages required. */
if (StartingOffset == 0xffffffff)
{
DPRINT1("Out of MDL mapping space\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Base = MiMdlMappingRegionBase + StartingOffset * PAGE_SIZE;
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
return(STATUS_SUCCESS);
default:
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
return(STATUS_SUCCESS);
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
RtlZeroMemory(BaseAddress, Length);
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/mpw.c
if (!NT_SUCCESS(Status))
{
DbgPrint("MpwThread: Wait failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL);
}
if (MpwThreadShouldTerminate)
-/* $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
* PROJECT: ReactOS kernel
{
DbgPrint("Bad block magic (probable pool corruption) at %x\n",
current);
- KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
+ KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
}
if (base_addr < MiNonPagedPoolStart ||
DbgPrint("Size %d\n",current->Size);
DbgPrint("Limits are %x %x\n",MiNonPagedPoolStart,
MiNonPagedPoolStart+MiCurrentNonPagedPoolLength);
- KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
+ KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
}
blocks_seen++;
if (blocks_seen > MiNrFreeBlocks)
{
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 &&
current->ListEntry.Flink->Blink != ¤t->ListEntry)
"current->next->previous %x)\n",
__FILE__,__LINE__,current, current->ListEntry.Flink,
current->ListEntry.Flink->Blink);
- KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
+ KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
}
current_entry = current_entry->Flink;
{
DbgPrint("Bad block magic (probable pool corruption) at %x\n",
current);
- KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
+ KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
}
if (base_addr < MiNonPagedPoolStart ||
(base_addr+current->Size) >
{
DbgPrint("Bad block magic (probable pool corruption) at %x\n",
current);
- KeBugCheck(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
+ KEBUGCHECK(/*KBUG_POOL_FREE_LIST_CORRUPT*/0);
}
if ( (int)current > base && (int)current < last )
if (MiCurrentNonPagedPoolLength + nr_pages * PAGE_SIZE > MiNonPagedPoolLength)
{
DbgPrint("CRITICAL: Out of non-paged pool space\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MiCurrentNonPagedPoolLength += nr_pages * PAGE_SIZE;
KeReleaseSpinLock(&MmNpoolLock, oldIrql);
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE, &Page);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(NULL);
}
Status = MmCreateVirtualMapping(NULL,
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
DbgPrint("ExFreePool of non-allocated address %x (magic %x)\n",
block, blk->Magic);
}
- KeBugCheck(0);
+ KEBUGCHECK(0);
return;
}
Page = MmAllocPage(MC_NPPOOL, 0);
if (Page.QuadPart == 0LL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmCreateVirtualMapping(NULL,
Address + (i * PAGE_SIZE),
Addr >= (MiNonPagedPoolStart + MiCurrentNonPagedPoolLength))
{
DbgPrint("Block %x found outside pool area\n", Addr);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
NrPages = *(PULONG)((ULONG)Addr - sizeof(ULONG));
MiFreeNonPagedPoolRegion((PVOID)PAGE_ROUND_DOWN((ULONG)Addr), NrPages, TRUE);
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/pagefile.c
if (SwapEntry == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL);
}
if (i >= MAX_PAGING_FILES)
{
DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PagingFileList[i]->FileObject == NULL ||
PagingFileList[i]->FileObject->DeviceObject == NULL)
{
DPRINT1("Bad paging file 0x%.8X\n", SwapEntry);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
file_offset.QuadPart = offset * PAGE_SIZE;
if (j >= RetrievalPointers->NumberOfPairs)
{
CHECKPOINT1;
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeInitializeEvent(&Event, NotificationEvent, FALSE);
if (SwapEntry == 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL);
}
if (i >= MAX_PAGING_FILES)
{
DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PagingFileList[i]->FileObject == NULL ||
PagingFileList[i]->FileObject->DeviceObject == NULL)
{
DPRINT1("Bad paging file 0x%.8X\n", SwapEntry);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
file_offset.QuadPart = offset * PAGE_SIZE;
if (j >= RetrievalPointers->NumberOfPairs)
{
CHECKPOINT1;
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeInitializeEvent(&Event, NotificationEvent, FALSE);
Status = IoPageRead(PagingFileList[i]->FileObject,
KeAcquireSpinLock(&PagingFileListLock, &oldIrql);
if (PagingFileList[i] == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeAcquireSpinLockAtDpcLevel(&PagingFileList[i]->AllocMapLock);
off = MiAllocPageFromPagingFile(PagingFileList[i]);
if (off == 0xFFFFFFFF)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
return(STATUS_UNSUCCESSFUL);
}
}
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(0);
}
-/* $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
* PROJECT: ReactOS kernel
PrevPageOp = PrevPageOp->Next;
}
KeReleaseSpinLock(&MmPageOpHashTableLock, oldIrql);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PMM_PAGEOP
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DbgPrint("PagerThread: Wait failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PagerThreadShouldTerminate)
{
-/* $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
* PROJECT: ReactOS kernel
if ((PoolType==NonPagedPoolMustSucceed ||
PoolType==NonPagedPoolCacheAlignedMustS) && Block==NULL)
{
- KeBugCheck(MUST_SUCCEED_POOL_EMPTY);
+ KEBUGCHECK(MUST_SUCCEED_POOL_EMPTY);
}
return(Block);
}
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
Address = entry->Address;
if ((((ULONG)Address) & 0xFFF) != 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Address < (PVOID)KERNEL_BASE)
{
if (PageOp == NULL)
{
DPRINT1("MmGetPageOp failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Address < (PVOID)KERNEL_BASE)
{
Address = entry->Address;
if ((((ULONG)Address) & 0xFFF) != 0)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Address < (PVOID)KERNEL_BASE)
if (PageOp == NULL)
{
DPRINT1("MmGetPageOp failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PageOp->Thread != PsGetCurrentThread())
}
else
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Address < (PVOID)KERNEL_BASE)
{
if (current_entry == NULL)
{
DPRINT1("MmIsDirtyRmap: No rmaps.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
while (current_entry != NULL)
{
if (current_entry == NULL)
{
DPRINT1("MmIsDirtyRmap: No rmaps.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
while (current_entry != NULL)
{
new_entry = ExAllocateFromNPagedLookasideList(&RmapLookasideList);
if (new_entry == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
new_entry->Address = Address;
new_entry->Process = Process;
"address 0x%.8X\n", Process->UniqueProcessId, Address,
MmGetPhysicalAddressForProcess(Process, Address),
PhysicalAddress)
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ExAcquireFastMutex(&RmapListLock);
if (current_entry == NULL)
{
DPRINT1("MmDeleteAllRmaps: No rmaps.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmSetRmapListHeadPage(PhysicalAddress, NULL);
while (current_entry != NULL)
previous_entry = current_entry;
current_entry = current_entry->Next;
}
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/section.c
{
DPRINT1("Image segment %d still referenced (was %d)\n", i,
SectionSegments[i].ReferenceCount);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmFreePageTablesSectionSegment(&SectionSegments[i]);
}
if (Segment->ReferenceCount != 0)
{
DPRINT1("Data segment still referenced\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmFreePageTablesSectionSegment(Segment);
ExFreePool(Segment);
TAG_SECTION_PAGE_TABLE);
if (Table == NULL)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
memset(Table, 0, sizeof(SECTION_PAGE_TABLE));
DPRINT("Table %x\n", Table);
if (Entry == 0)
{
DPRINT1("Entry == 0 for MmSharePageEntrySectionSegment\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (SHARE_COUNT_FROM_SSE(Entry) == MAX_SHARE_COUNT)
{
DPRINT1("Maximum share count reached\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (IS_SWAP_FROM_SSE(Entry))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Entry = MAKE_SSE(PAGE_FROM_SSE(Entry), SHARE_COUNT_FROM_SSE(Entry) + 1);
MmSetPageEntrySectionSegment(Segment, Offset, Entry);
if (Entry == 0)
{
DPRINT1("Entry == 0 for MmSharePageEntrySectionSegment\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (SHARE_COUNT_FROM_SSE(Entry) == 0)
{
DPRINT1("Zero share count for unshare\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (IS_SWAP_FROM_SSE(Entry))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Entry = MAKE_SSE(PAGE_FROM_SSE(Entry), SHARE_COUNT_FROM_SSE(Entry) - 1);
/*
if (!NT_SUCCESS(Status))
{
DPRINT1("CcRosUnmapCacheSegment failed, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
if (PageOp == NULL)
{
DPRINT1("MmGetPageOp failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (Status != STATUS_SUCCESS)
{
DPRINT1("Failed to wait for page op, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PageOp->Status == STATUS_PENDING)
{
DPRINT1("Woke for page op before completion\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmLockAddressSpace(AddressSpace);
/*
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmInsertRmap(Page, MemoryArea->Process, (PVOID)PAddress);
}
if (Segment->Flags & MM_PAGEFILE_SEGMENT)
{
DPRINT1("Found a swaped out private page in a pagefile section.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmUnlockSectionSegment(Segment);
Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &Page);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Mdl = MmCreateMdl(NULL, NULL, PAGE_SIZE);
if (!NT_SUCCESS(Status))
{
DPRINT1("MmReadFromSwapPage failed, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmLockAddressSpace(AddressSpace);
Status = MmCreateVirtualMapping(AddressSpace->Process,
if (!NT_SUCCESS(Status))
{
DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(Status);
}
if (!NT_SUCCESS(Status))
{
DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(Status);
}
/*
}
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Status = MmCreateVirtualMapping(AddressSpace->Process,
Address,
if (!NT_SUCCESS(Status))
{
DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(Status);
}
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
if (Entry != Entry1)
{
DbgPrint("Someone changed ppte entry while we slept\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &Page);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Mdl = MmCreateMdl(NULL, NULL, PAGE_SIZE);
Status = MmReadFromSwapPage(SwapEntry, Mdl);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (Entry != Entry1)
{
DbgPrint("Someone changed ppte entry while we slept\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
if (Locked)
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmInsertRmap(Page, AddressSpace->Process, (PVOID)PAddress);
if (Locked)
if (PageOp == NULL)
{
DPRINT1("MmGetPageOp failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (Status == STATUS_TIMEOUT)
{
DPRINT1("Failed to wait for page op, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (PageOp->Status == STATUS_PENDING)
{
DPRINT1("Woke for page op before completion\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
* Restart the operation
Status = MmRequestPageMemoryConsumer(MC_USER, TRUE, &NewPage);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (!NT_SUCCESS(Status))
{
DPRINT("MmCreateVirtualMapping failed, not out of memory\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(Status);
}
MmInsertRmap(NewPage, AddressSpace->Process, (PVOID)PAddress);
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Locked)
{
DPRINT1("Trying to page out from physical memory section address 0x%X "
"process %d\n", Address,
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
{
DPRINT1("Trying to page out not-present page at (%d,0x%.8X).\n",
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, Address);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PhysicalAddress =
MmGetPhysicalAddressForProcess(AddressSpace->Process, Address);
DPRINT1("SwapEntry != 0 was 0x%.8X at address 0x%.8X, "
"paddress 0x%.8X\n", SwapEntry, Address,
PhysicalAddress);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (Context.Private)
{
DPRINT1("Had private copy of read-only page.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
if (Context.WasDirty)
{
DPRINT1("Had a dirty page of a read-only page.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PageOp->Status = STATUS_SUCCESS;
if(!MiIsPageFromCache(MemoryArea, Context.Offset))
{
DPRINT1("Direct mapped non private page is not associated with the cache.\n")
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
if (!(Context.Segment->Flags & MM_PAGEFILE_SEGMENT))
{
CHECKPOINT1;
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
"process %d address 0x%.8X\n",
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0,
Address);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
else
{
SwapEntry);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
}
if (!NT_SUCCESS(Status))
{
DPRINT1("CCRosUnmapCacheSegment failed, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
if (!NT_SUCCESS(Status))
{
DPRINT1("CcRosUnmapCacheSegment failed, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PageOp->Status = STATUS_SUCCESS;
KeSetEvent(&PageOp->CompletionEvent, IO_NO_INCREMENT, FALSE);
SwapEntry);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
DPRINT1("Trying to write back page from physical memory mapped at %X "
"process %d\n", Address,
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
{
DPRINT1("Trying to page out not-present page at (%d,0x%.8X).\n",
AddressSpace->Process ? AddressSpace->Process->UniqueProcessId : 0, Address);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PhysicalAddress =
MmGetPhysicalAddressForProcess(AddressSpace->Process, Address);
if (!NT_SUCCESS(Status))
{
DbgPrint("Failed to create PhysicalMemory section\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Status = ObReferenceObjectByHandle(PhysSectionH,
SECTION_ALL_ACCESS,
if (!NT_SUCCESS(Status))
{
DbgPrint("Failed to reference PhysicalMemory section\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
PhysSection->AllocationAttributes |= SEC_PHYSICALMEMORY;
ObDereferenceObject((PVOID)PhysSection);
if (Status != STATUS_SUCCESS)
{
DPRINT1("Failed to wait for page op, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmLockAddressSpace(&MArea->Process->AddressSpace);
if (Segment->Flags & MM_PAGEFILE_SEGMENT)
{
DPRINT1("Found a swap entry for a page in a pagefile section.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
MmFreeSwapPage(SwapEntry);
}
if (Segment->Flags & MM_PAGEFILE_SEGMENT)
{
DPRINT1("Found a private page in a pagefile section.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
* Just dereference private pages
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to allocate page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Status = MmCreateVirtualMapping (NULL,
(Result + (i * PAGE_SIZE)),
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
return ((PVOID)Result);
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
if (Page->FirstFreeBuffer == NULL)
{
DPRINT1("First free page had no free buffers.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
}
}
DPRINT1("Tried to free object not in cache.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
VOID
current_entry = current_entry->Flink;
}
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeReleaseSpinLock(&ProfileListLock, oldIrql);
-/* $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
* PROJECT: ReactOS kernel
{
CPRINT("Object %x/%x has invalid reference count (%d)\n",
Header, HEADER_TO_BODY(Header), Header->RefCount);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Header->HandleCount < 0)
{
CPRINT("Object %x/%x has invalid handle count (%d)\n",
Header, HEADER_TO_BODY(Header), Header->HandleCount);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
if (Header->RefCount == 0 &&
{
if (Header->CloseInProcess)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
return STATUS_UNSUCCESSFUL;
}
Header->CloseInProcess = TRUE;
if (Header->CloseInProcess)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
InterlockedIncrement(&Header->RefCount);
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
CPRINT("NtQueryVirtualMemory (Status %x)\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/* FIXME: Race between this and the above check */
if (Info.State == MEM_FREE)
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DPRINT1("ObCreateHandle failed, status = %x\n", Status);
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
Offset = FIELD_OFFSET(TEB, DeallocationStack);
Length = 0;
KeAcquireSpinLock(&PiThreadListLock, &oldIrql);
PsDispatchThreadNoLock(THREAD_STATE_TERMINATED_1);
DPRINT1("Unexpected return, CurrentThread %x PsGetCurrentThread() %x\n", CurrentThread, PsGetCurrentThread());
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
VOID STDCALL
-/* $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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
CPRINT("PsGetNextProcess(): ObReferenceObjectByPointer failed\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ObDereferenceObject(OldProcess);
DUPLICATE_SAME_ACCESS);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
DUPLICATE_SAME_ACCESS);
if (!NT_SUCCESS(Status))
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
else
{
MmUnlockAddressSpace(&Process->AddressSpace);
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 */
{
MmUnlockAddressSpace(&Process->AddressSpace);
DPRINT1("Failed to protect the lowest 64KB of the process address space\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
#endif
{
MmUnlockAddressSpace(&Process->AddressSpace);
DPRINT1("Failed to protect the memory above the shared user page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/* Create the shared data page */
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to create shared data page\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
/*
-/* $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
* PROJECT: ReactOS kernel
if (Priority >= MAXIMUM_PRIORITY || Priority < 0)
{
DPRINT1("Invalid thread priority\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
InsertTailList(&PriorityListHead[Priority], &Thread->Tcb.QueueListEntry);
PiNrReadyThreads++;
}
}
CPRINT("CRITICAL: No threads are ready\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
VOID STDCALL
if (!NT_SUCCESS(Status))
{
DPRINT1("PS: Failed to create reaper thread.\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
}
if (Priority < 0 || Priority >= MAXIMUM_PRIORITY)
{
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
OldPriority = Thread->Priority;
if (TrapFrame == NULL)
{
CPRINT("NtContinue called but TrapFrame was NULL\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
KeContextToTrapFrame(Context, TrapFrame);
return(STATUS_SUCCESS);
-/* $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
* PROJECT: ReactOS kernel
KeStackSwitchAndRet((PVOID)(OldStack + 1));
/* Should never return. */
- KeBugCheck(0);
+ KEBUGCHECK(0);
return(STATUS_UNSUCCESSFUL);
}
-/* $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
* PROJECT: ReactOS kernel
NlsOemCodePageTable == NULL || NlsOemCodePageTableSize == 0 ||
NlsUnicodeCasemapTable == NULL || NlsUnicodeCasemapTableSize == 0)
{
- KeBugCheckEx (0x32, STATUS_UNSUCCESSFUL, 1, 0, 0);
+ KEBUGCHECKEX (0x32, STATUS_UNSUCCESSFUL, 1, 0, 0);
}
RtlInitNlsTables (NlsAnsiCodePageTable,
if (!NT_SUCCESS(Status))
{
DPRINT1("NtCreateSection() failed\n");
- KeBugCheckEx(0x32, Status, 1, 1, 0);
+ KEBUGCHECKEX(0x32, Status, 1, 1, 0);
}
Status = ObReferenceObjectByHandle(SectionHandle,
if (!NT_SUCCESS(Status))
{
DPRINT1("ObReferenceObjectByHandle() failed\n");
- KeBugCheckEx(0x32, Status, 1, 2, 0);
+ KEBUGCHECKEX(0x32, Status, 1, 2, 0);
}
Status = MmMapViewInSystemSpace(NlsSectionObject,
if (!NT_SUCCESS(Status))
{
DPRINT1("MmMapViewInSystemSpace() failed\n");
- KeBugCheckEx(0x32, Status, 1, 3, 0);
+ KEBUGCHECKEX(0x32, Status, 1, 3, 0);
}
DPRINT("NlsSection: Base %p Size %lx\n",
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
if (!NT_SUCCESS(Status))
{
DPRINT1("Error waiting in TimerThreadMain\n");
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ExAcquireFastMutex(&Mutex);
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
if (Win32Thread->WindowListHead.Flink == LastHead)
{
/* Window at head of list was not removed, should never happen, infinite loop */
- KeBugCheck(0);
+ KEBUGCHECK(0);
}
ExReleaseFastMutexUnsafe(&Win32Thread->WindowListLock);
}