Build diskdump with NDK

svn path=/trunk/; revision=16230
This commit is contained in:
Alex Ionescu 2005-06-22 23:12:24 +00:00
parent d1258e99fa
commit 705a57e075

View file

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