FreeBSD and wine mmap [PATCH]

Anish Mistry mistry.7 at
Wed Aug 18 18:50:50 PDT 2004

Hash: SHA1

Ok, I've got a patches that are against 4-STABLE and 6-CURRENT.  This fixes 
the mmap function so that if the upper process address space is already 
mmap'd it will start from the bottom and work it's way up.  There is probably 
a much better way than the simple linear search(expensive, but not too bad 
with the new findspace implementation), but not being a VM person I don't 
This allows wine and possibly other applications to behave how they need to.  
I haven't noticed any issues on either my 4.x or 6.x system.

Now for the wine stuff.  The 4.x patch allows for the june version of wine to 
work, but newer versions seem to die with weird sig_action signals.  The 6.x 
patch allows wine to get to the point where it threads then dies with pthread 
errors about not being able to allocate the "red zone" I hacked up libpthread 
just to see what would happen if we can get passed this, and wine works 
nicely, but the libpthread changes broke other apps so we should probably 
just stick with mmap change and some modifications to the wine code.  I'll 
try to work up some wine patches to work around the pthread issue.

Hopefully someone can build off this so we can get something in after the 

- -- 
Anish Mistry
Version: GnuPG v1.2.4 (FreeBSD)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vm_mmap-wine-4-stable.patch
Type: text/x-diff
Size: 1176 bytes
Desc: not available
Url :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vm_mmap-wine-6-current.patch
Type: text/x-diff
Size: 1224 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list