wine-pthread working on MacOSX (fix dos memory)

emmanuel maillard e.rsz at libertysurf.fr
Wed Jul 21 15:36:09 CDT 2004


Hi,

This two patches fix dos memory, and my previous problems.
The first set the segment address of wine executable (0x120000) and 
libwine.dylib (0x140000)
to leave the first megabytes free for dos memory.
The second one reserve this memory area to prevent dynamic linker to 
load dll in this range, until setup_dos_mem is call.

Thanks

emmanuel

Changelog :
	- Set segment address of wine executable and libwine.dylib on Darwin.
	- Reserve dos memory area to prevent dynamic linker to load dll in 
this area.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: segaddrwine.diff
Type: application/octet-stream
Size: 1326 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040721/bf647568/segaddrwine.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reservedosmem.diff
Type: application/octet-stream
Size: 2756 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040721/bf647568/reservedosmem.obj
-------------- next part --------------




Le 19 juil. 04, ? 21:46, Alexandre Julliard a ?crit :

> emmanuel maillard <e.rsz at libertysurf.fr> writes:
>
>> This patch remove granularity check in NtAllocateVirtualMemory for
>> Darwin, because teb can be alloc at
>> address < granularity_mask (0xffff)
>
> This must be avoided, nothing should be allocated below 64K, the
> Windows API depends on that. You probably need to adapt the memory
> reservation code to reserve the low 64K on Darwin.
>
> -- 
> Alexandre Julliard
> julliard at winehq.org
>



More information about the wine-patches mailing list