Build diskdump with NDK
authorAlex Ionescu <aionescu@gmail.com>
Wed, 22 Jun 2005 23:12:24 +0000 (23:12 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Wed, 22 Jun 2005 23:12:24 +0000 (23:12 +0000)
svn path=/trunk/; revision=16230

reactos/drivers/storage/diskdump/diskdump.c

index dcce7b3..6af5728 100644 (file)
@@ -32,7 +32,8 @@
 #include <ddk/ntdddisk.h>
 #include <ddk/ntddscsi.h>
 #include <ddk/class2.h>
-#include <ntos.h>
+
+#include <ndk/ntndk.h>
 #include <napi/core.h>
 #include "../scsiport/scsiport_int.h"
 
@@ -222,7 +223,7 @@ DiskDumpInit(VOID)
 {
   KIRQL CurrentIrql = KeGetCurrentIrql();
   IsDumping = TRUE;
-  if (CurrentIrql >= CoreDumpPortDeviceExtension->Interrupt->SynchLevel)
+  if (CurrentIrql >= CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql)
     {
       DbgPrint("DISKDUMP: Error: Crash inside high priority interrupt routine.\n");
       return(STATUS_UNSUCCESSFUL);
@@ -244,9 +245,9 @@ DiskDumpWrite(LARGE_INTEGER Address, PMDL Mdl)
   KIRQL OldIrql, OldIrql2;
   KIRQL CurrentIrql = KeGetCurrentIrql();
 
-  if (CurrentIrql < (CoreDumpPortDeviceExtension->Interrupt->SynchLevel - 1))
+  if (CurrentIrql < (CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql - 1))
     {
-      KeRaiseIrql(CoreDumpPortDeviceExtension->Interrupt->SynchLevel - 1, &OldIrql);
+      KeRaiseIrql(CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql - 1, &OldIrql);
     }
 
   /* Adjust the address for the start of the partition. */
@@ -260,7 +261,7 @@ DiskDumpWrite(LARGE_INTEGER Address, PMDL Mdl)
 
   /* Start i/o on the HBA. */
   IrqComplete = IrqNextRequest = FALSE;
-  KeRaiseIrql(CoreDumpPortDeviceExtension->Interrupt->SynchLevel, &OldIrql2);
+  KeRaiseIrql(CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql, &OldIrql2);
   if (!CoreDumpPortDeviceExtension->HwStartIo(&CoreDumpPortDeviceExtension->MiniPortDeviceExtension,
                                              &CoreDumpSrb))
     {
@@ -276,7 +277,7 @@ DiskDumpWrite(LARGE_INTEGER Address, PMDL Mdl)
     {
       __asm__ ("hlt\n\t");
     }
-  if (CurrentIrql < (CoreDumpPortDeviceExtension->Interrupt->SynchLevel - 1))
+  if (CurrentIrql < (CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql - 1))
     {
       KeLowerIrql(OldIrql);
     }