mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 12:24:48 +00:00
[XDK]
- 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:
parent
d5606434e4
commit
85bb9f1bce
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue