- Convert remaining KEBUGCHECK to KeBugCheck.
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 4 Oct 2009 14:48:18 +0000 (14:48 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 4 Oct 2009 14:48:18 +0000 (14:48 +0000)
- Add HAL_MEMORY_ALLOCATION bug code and use it.

svn path=/trunk/; revision=43282

reactos/hal/halamd64/generic/hal.c
reactos/hal/halppc/generic/bus.c
reactos/hal/halppc/generic/dma.c
reactos/hal/halppc/generic/irql.c
reactos/hal/halppc/generic/pci.c
reactos/hal/halppc/generic/profil.c
reactos/hal/halx86/generic/dma.c
reactos/include/reactos/mc/bugcodes.mc

index 82c60f2..759c0fb 100644 (file)
@@ -120,7 +120,7 @@ VOID
 NTAPI
 HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return;
 }
 
@@ -131,7 +131,7 @@ VOID
 NTAPI
 HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return;
 }
 
@@ -142,7 +142,7 @@ ULONG_PTR
 NTAPI
 HalSetProfileInterval(IN ULONG_PTR Interval)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return Interval;
 }
 
index a35adbe..23bf9f6 100644 (file)
@@ -222,7 +222,7 @@ HalGetBusDataByOffset(IN BUS_DATA_TYPE BusDataType,
     else if (BusDataType == EisaConfiguration)
     {
         /* FIXME: TODO */
-        KEBUGCHECK(0);
+        KeBugCheck(0);
     }
     else if ((BusDataType == PCIConfiguration) &&
              (HalpPCIConfigInitialized) &&
index aaaef91..9ba4bbb 100644 (file)
@@ -1485,9 +1485,7 @@ HalpCopyBufferMap(
        * NOTE: On real NT a mechanism with reserved pages is implemented
        * to handle this case in a slow, but graceful non-fatal way.
        */
-      /* FIXME: The correct bug check code isn't defined. */
-      /* KEBUGCHECKEX(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0); */
-      KEBUGCHECK(0);
+      KeBugCheckEx(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0);
    }
 
    CurrentAddress = (ULONG_PTR)VirtualAddress +
index 177b290..5cc5a80 100644 (file)
@@ -216,7 +216,7 @@ KfLowerIrql (KIRQL  NewIrql)
     {
       DbgPrint ("(%s:%d) NewIrql %x CurrentIrql %x\n",
                __FILE__, __LINE__, NewIrql, KeGetPcr()->Irql);
-      KEBUGCHECK(0);
+      KeBugCheck(0);
       for(;;);
     }
 
@@ -251,7 +251,7 @@ KfRaiseIrql (KIRQL  NewIrql)
     {
       DbgPrint ("%s:%d CurrentIrql %x NewIrql %x\n",
                __FILE__,__LINE__,KeGetPcr()->Irql,NewIrql);
-      KEBUGCHECK (0);
+      KeBugCheck (0);
       for(;;);
     }
 
@@ -424,7 +424,7 @@ HalRequestSoftwareInterrupt(
       break;
 
     default:
-      KEBUGCHECK(0);
+      KeBugCheck(0);
   }
 }
 
@@ -443,7 +443,7 @@ HalClearSoftwareInterrupt(
       break;
 
     default:
-      KEBUGCHECK(0);
+      KeBugCheck(0);
   }
 }
 
index 867f549..c208432 100644 (file)
@@ -496,7 +496,7 @@ HalpAssignPCISlotResources(IN PBUS_HANDLER BusHandler,
                            IN ULONG Slot,
                            IN OUT PCM_RESOURCE_LIST *pAllocatedResources)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return STATUS_SUCCESS;
 }
 
index 2c7959d..6a01854 100644 (file)
@@ -21,7 +21,7 @@ VOID
 NTAPI
 HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return;
 }
 
@@ -32,7 +32,7 @@ VOID
 NTAPI
 HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return;
 }
 
@@ -43,7 +43,7 @@ ULONG_PTR
 NTAPI
 HalSetProfileInterval(IN ULONG_PTR Interval)
 {
-    KEBUGCHECK(0);
+    KeBugCheck(0);
     return Interval;
 }
 
index 0f060f4..6bda263 100644 (file)
@@ -1487,9 +1487,7 @@ HalpCopyBufferMap(
        * NOTE: On real NT a mechanism with reserved pages is implemented
        * to handle this case in a slow, but graceful non-fatal way.
        */
-      /* FIXME: The correct bug check code isn't defined. */
-      /* KEBUGCHECKEX(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0); */
-      ASSERT(FALSE);
+      KeBugCheckEx(HAL_MEMORY_ALLOCATION, PAGE_SIZE, 0, (ULONG_PTR)__FILE__, 0);
    }
 
    CurrentAddress = (ULONG_PTR)VirtualAddress +
index 6b8db40..38232ee 100644 (file)
@@ -1168,6 +1168,14 @@ Language=English
 The system is booting in safemode - Directory Services Repair
 .
 
+MessageId=0xAC
+Severity=Success
+Facility=System
+SymbolicName=HAL_MEMORY_ALLOCATION
+Language=English
+HAL_MEMORY_ALLOCATION
+.
+
 MessageId=0xB4
 Severity=Success
 Facility=System