Brendan Shanks : loader: On Mac, move the top-down allocations area down to avoid Rosetta regions.
Alexandre Julliard
julliard at winehq.org
Mon Jun 7 15:02:07 CDT 2021
Module: wine
Branch: stable
Commit: 497025d144fb738a60f9463027f993e5a8d04368
URL: https://source.winehq.org/git/wine.git/?a=commit;h=497025d144fb738a60f9463027f993e5a8d04368
Author: Brendan Shanks <bshanks at codeweavers.com>
Date: Thu Jan 28 14:52:45 2021 -0800
loader: On Mac, move the top-down allocations area down to avoid Rosetta regions.
On Apple Silicon, Rosetta's shared cache starts at 0x7ffe00000000 and
the runtime is mapped below that.
Put the top-down allocation area below the runtime with plenty of room
to spare.
Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 720611e28e750b42c7b8d7a2b72047e3027c1ec5)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
loader/preloader_mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/loader/preloader_mac.c b/loader/preloader_mac.c
index 43dc6b2b7e6..d86675538bb 100644
--- a/loader/preloader_mac.c
+++ b/loader/preloader_mac.c
@@ -79,7 +79,7 @@ static struct wine_preload_info preload_info[] =
{ (void *)0x000000010000, 0x00100000 }, /* DOS area */
{ (void *)0x000000110000, 0x67ef0000 }, /* low memory area */
{ (void *)0x00007ff00000, 0x000f0000 }, /* shared user data */
- { (void *)0x7ffef0000000, 0x01ff0000 }, /* top-down allocations + virtual heap */
+ { (void *)0x7ffd00000000, 0x01ff0000 }, /* top-down allocations + virtual heap */
#endif /* __i386__ */
{ 0, 0 }, /* PE exe range set with WINEPRELOADRESERVE */
{ 0, 0 } /* end of list */
More information about the wine-cvs
mailing list