[NTOS:MM:X64] Fix MM_WAIT_ENTRY on x64

This commit is contained in:
Timo Kreuzer 2019-07-28 14:27:51 +02:00
parent d4b4cf7448
commit 17fa04f10b

View file

@ -149,7 +149,13 @@ typedef ULONG_PTR SWAPENTRY;
//
// Wait entry for marking pages that are being serviced
//
#ifdef _M_IX86
#define MM_WAIT_ENTRY 0x7ffffc00
#elif defined(_M_AMD64)
#define MM_WAIT_ENTRY 0x7FFFFFFFFFFFFC00ULL
#else
#error Unsupported architecture!
#endif
#define InterlockedCompareExchangePte(PointerPte, Exchange, Comperand) \
InterlockedCompareExchange((PLONG)(PointerPte), Exchange, Comperand)