[PATCH 4/4] ntdll: Limit address space to 512GB on ARM64

André Hentschel nerv at dawncrow.de
Wed Nov 15 16:31:12 CST 2017


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 dlls/ntdll/virtual.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index d28b138..2518c82 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1582,7 +1582,9 @@ void virtual_init(void)
     assert( !(page_size & page_mask) );
     page_shift = 0;
     while ((1 << page_shift) != page_size) page_shift++;
-#ifdef _WIN64
+#ifdef __aarch64__
+    address_space_limit = (void *)(((1UL << 39) - 1) & ~page_mask);
+#elif defined(_WIN64)
     address_space_limit = (void *)(((1UL << 47) - 1) & ~page_mask);
 #else
     address_space_limit = (void *)~page_mask;
-- 
2.7.4




More information about the wine-devel mailing list