FreeBSD and wine mmap

Anish Mistry mistry.7 at osu.edu
Tue Aug 10 10:52:18 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 04 August 2004 06:39 pm, you wrote:
> On Wed, Aug 04, 2004 at 06:28:02PM -0400, Anish Mistry wrote:
> > Ok, so we need something like vm_map_findspace(), but for process address
> > mapping?  ie. pmap_findspace() that will return an address to a large
> > enough free chunk?
>
> That's a good start, just to get something to work with. How this fits in
> with the vm code and whether it is ultimately suitable in the long run is
> probably up to Alan Cox. For now, just get something that (a) doesn't break
> anything else; and (b) lets Wine behave the way it needs to.
>
> AFAIK, there are still pthread issues with Wine, but those can't be
> addressed until the mmap issue has a work-around.
I've got a small patch that gets by the initial problem about not being to 
mmap the memory for the libraries, but the addresses that are mmap'ed seem to 
seem to overlap with memory that the current pthread implementation want to 
mmap for the "red zone" when wine tries to create a thread.  It can't mmap 
the "red zone" addresses since all those address mapping where gobbled up 
before the thread launched.
I'll try to figure out a way to maybe leave a space for the "red zone" and see 
if that works.
Someone who actually knows what they are doing should probably take a look.
- -- 
Anish Mistry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBGQuRxqA5ziudZT0RAv0VAJ0bL3c9McGSCjtXLucNuIwJRWkt7QCdG6Uh
jJeycc2sW1sb4fFOsJ+vT/k=
=/uWq
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vm_mmap.patch
Type: text/x-diff
Size: 1360 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040810/0123b225/vm_mmap.bin


More information about the freebsd-current mailing list