[2/2] libwine: Unmap the area above 0x82000000 for DragonFly BSD

André Hentschel nerv at dawncrow.de
Mon May 28 12:27:20 CDT 2012


This enables Wine with a hacked directory.c to run on DragonFly BSD (together with the other patches)

---
 libs/wine/mmap.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libs/wine/mmap.c b/libs/wine/mmap.c
index 44fc53f..71bb101 100644
--- a/libs/wine/mmap.c
+++ b/libs/wine/mmap.c
@@ -386,6 +386,10 @@ void mmap_init(void)
     }
     else reserve_area( user_space_limit, 0 );
 
+#if defined(__DragonFly__)
+    wine_mmap_remove_reserved_area( (char *)0x82000000, 0xffffffff - 0x82000000, 1 );
+#endif
+
     /* reserve the DOS area if not already done */
 
     ptr = list_head( &reserved_areas );
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list