https://git.reactos.org/?p=reactos.git;a=commitdiff;h=17fa04f10b024cc34ca07…
commit 17fa04f10b024cc34ca07ce0cf36d0a017df8ea1
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Jul 28 14:27:51 2019 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Nov 1 09:32:27 2020 +0100
[NTOS:MM:X64] Fix MM_WAIT_ENTRY on x64
---
ntoskrnl/include/internal/mm.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ntoskrnl/include/internal/mm.h b/ntoskrnl/include/internal/mm.h
index 32fd7b1146d..fb70f3b460b 100644
--- a/ntoskrnl/include/internal/mm.h
+++ b/ntoskrnl/include/internal/mm.h
@@ -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)