Build diskdump with NDK
Modified: trunk/reactos/drivers/storage/diskdump/diskdump.c
_____
Modified: trunk/reactos/drivers/storage/diskdump/diskdump.c
--- trunk/reactos/drivers/storage/diskdump/diskdump.c 2005-06-22
23:10:15 UTC (rev 16229)
+++ trunk/reactos/drivers/storage/diskdump/diskdump.c 2005-06-22
23:12:24 UTC (rev 16230)
@@ -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 @@
{
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 @@
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 @@
/* Start i/o on the HBA. */
IrqComplete = IrqNextRequest = FALSE;
- KeRaiseIrql(CoreDumpPortDeviceExtension->Interrupt->SynchLevel,
&OldIrql2);
+ KeRaiseIrql(CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql,
&OldIrql2);
if
(!CoreDumpPortDeviceExtension->HwStartIo(&CoreDumpPortDeviceExtension->M
iniPortDeviceExtension,
&CoreDumpSrb))
{
@@ -276,7 +277,7 @@
{
__asm__ ("hlt\n\t");
}
- if (CurrentIrql < (CoreDumpPortDeviceExtension->Interrupt->SynchLevel
- 1))
+ if (CurrentIrql <
(CoreDumpPortDeviceExtension->Interrupt->SynchronizeIrql - 1))
{
KeLowerIrql(OldIrql);
}
Show replies by date