- fix ASSERTs in amd64 inline functions
- fix definition of KWAIT_BLOCK
These fixes are not critical, so I don't update wdm.h to avoid additional recompilation

svn path=/trunk/; revision=55413
This commit is contained in:
Timo Kreuzer 2012-02-04 17:29:34 +00:00
parent d5606434e4
commit 85bb9f1bce
2 changed files with 6 additions and 2 deletions

View file

@ -73,7 +73,7 @@ FORCEINLINE
VOID
KeLowerIrql(IN KIRQL NewIrql)
{
//ASSERT(KeGetCurrentIrql() >= NewIrql);
ASSERT((KIRQL)__readcr8() >= NewIrql);
__writecr8(NewIrql);
}
@ -84,7 +84,7 @@ KfRaiseIrql(IN KIRQL NewIrql)
KIRQL OldIrql;
OldIrql = (KIRQL)__readcr8();
//ASSERT(OldIrql <= NewIrql);
ASSERT(OldIrql <= NewIrql);
__writecr8(NewIrql);
return OldIrql;
}

View file

@ -463,7 +463,11 @@ typedef struct _KWAIT_BLOCK {
struct _KWAIT_BLOCK *NextWaitBlock;
USHORT WaitKey;
UCHAR WaitType;
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
volatile UCHAR BlockState;
#else
UCHAR SpareByte;
#endif
#if defined(_WIN64)
LONG SpareLong;
#endif