mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Build diskdump with NDK
svn path=/trunk/; revision=16230
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user