Author: sginsberg
Date: Sun Oct 4 16:48:18 2009
New Revision: 43282
URL:
http://svn.reactos.org/svn/reactos?rev=43282&view=rev
Log:
- Convert remaining KEBUGCHECK to KeBugCheck.
- Add HAL_MEMORY_ALLOCATION bug code and use it.
Modified:
trunk/reactos/hal/halamd64/generic/hal.c
trunk/reactos/hal/halppc/generic/bus.c
trunk/reactos/hal/halppc/generic/dma.c
trunk/reactos/hal/halppc/generic/irql.c
trunk/reactos/hal/halppc/generic/pci.c
trunk/reactos/hal/halppc/generic/profil.c
trunk/reactos/hal/halx86/generic/dma.c
trunk/reactos/include/reactos/mc/bugcodes.mc
Modified: trunk/reactos/hal/halamd64/generic/hal.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halamd64/generic/hal.c…
==============================================================================
--- trunk/reactos/hal/halamd64/generic/hal.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halamd64/generic/hal.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -120,7 +120,7 @@
NTAPI
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return;
}
@@ -131,7 +131,7 @@
NTAPI
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return;
}
@@ -142,7 +142,7 @@
NTAPI
HalSetProfileInterval(IN ULONG_PTR Interval)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return Interval;
}
Modified: trunk/reactos/hal/halppc/generic/bus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halppc/generic/bus.c?r…
==============================================================================
--- trunk/reactos/hal/halppc/generic/bus.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halppc/generic/bus.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -222,7 +222,7 @@
else if (BusDataType == EisaConfiguration)
{
/* FIXME: TODO */
- KEBUGCHECK(0);
+ KeBugCheck(0);
}
else if ((BusDataType == PCIConfiguration) &&
(HalpPCIConfigInitialized) &&
Modified: trunk/reactos/hal/halppc/generic/dma.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halppc/generic/dma.c?r…
==============================================================================
--- trunk/reactos/hal/halppc/generic/dma.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halppc/generic/dma.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -1485,9 +1485,7 @@
* NOTE: On real NT a mechanism with reserved pages is implemented
* to handle this case in a slow, but graceful non-fatal way.
*/
- /* FIXME: The correct bug check code isn't defined. */
- /* KEBUGCHECKEX(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0); */
- KEBUGCHECK(0);
+ KeBugCheckEx(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0);
}
CurrentAddress = (ULONG_PTR)VirtualAddress +
Modified: trunk/reactos/hal/halppc/generic/irql.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halppc/generic/irql.c?…
==============================================================================
--- trunk/reactos/hal/halppc/generic/irql.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halppc/generic/irql.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -216,7 +216,7 @@
{
DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
__FILE__, __LINE__, NewIrql, KeGetPcr()->Irql);
- KEBUGCHECK(0);
+ KeBugCheck(0);
for(;;);
}
@@ -251,7 +251,7 @@
{
DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
__FILE__,__LINE__,KeGetPcr()->Irql,NewIrql);
- KEBUGCHECK (0);
+ KeBugCheck (0);
for(;;);
}
@@ -424,7 +424,7 @@
break;
default:
- KEBUGCHECK(0);
+ KeBugCheck(0);
}
}
@@ -443,7 +443,7 @@
break;
default:
- KEBUGCHECK(0);
+ KeBugCheck(0);
}
}
Modified: trunk/reactos/hal/halppc/generic/pci.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halppc/generic/pci.c?r…
==============================================================================
--- trunk/reactos/hal/halppc/generic/pci.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halppc/generic/pci.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -496,7 +496,7 @@
IN ULONG Slot,
IN OUT PCM_RESOURCE_LIST *pAllocatedResources)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return STATUS_SUCCESS;
}
Modified: trunk/reactos/hal/halppc/generic/profil.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halppc/generic/profil.…
==============================================================================
--- trunk/reactos/hal/halppc/generic/profil.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halppc/generic/profil.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -21,7 +21,7 @@
NTAPI
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return;
}
@@ -32,7 +32,7 @@
NTAPI
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return;
}
@@ -43,7 +43,7 @@
NTAPI
HalSetProfileInterval(IN ULONG_PTR Interval)
{
- KEBUGCHECK(0);
+ KeBugCheck(0);
return Interval;
}
Modified: trunk/reactos/hal/halx86/generic/dma.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/dma.c?r…
==============================================================================
--- trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -1487,9 +1487,7 @@
* NOTE: On real NT a mechanism with reserved pages is implemented
* to handle this case in a slow, but graceful non-fatal way.
*/
- /* FIXME: The correct bug check code isn't defined. */
- /* KEBUGCHECKEX(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0); */
- ASSERT(FALSE);
+ KeBugCheckEx(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0);
}
CurrentAddress = (ULONG_PTR)VirtualAddress +
Modified: trunk/reactos/include/reactos/mc/bugcodes.mc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/mc/bugcode…
==============================================================================
--- trunk/reactos/include/reactos/mc/bugcodes.mc [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/mc/bugcodes.mc [iso-8859-1] Sun Oct 4 16:48:18 2009
@@ -1168,6 +1168,14 @@
The system is booting in safemode - Directory Services Repair
.
+MessageId=0xAC
+Severity=Success
+Facility=System
+SymbolicName=HAL_MEMORY_ALLOCATION
+Language=English
+HAL_MEMORY_ALLOCATION
+.
+
MessageId=0xB4
Severity=Success
Facility=System