https://git.reactos.org/?p=reactos.git;a=commitdiff;h=17fa04f10b024cc34ca07ce0cf36d0a017df8ea1

commit 17fa04f10b024cc34ca07ce0cf36d0a017df8ea1
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sun Jul 28 14:27:51 2019 +0200
Commit:     Timo Kreuzer <[email protected]>
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)

Reply via email to