Displaying 2 results from an estimated 2 matches for "wine_anon_mmap".
2005 Jan 13
3
Wine and FreeBSD
...s running).
Unfortunately, it seems that the new version breaks everything.
Further pottering around found...
HEAP_CreateSystemHeap() calls
MapViewOfFileEx() which calls
NtMapViewOfSection() which calls
map_view() which
attempts a normal allocation - wine_mmap_is_in_reserved_area() == 0
calling wine_anon_mmap()
The returned pointer is valid so wine_anon_mmap() succeeds BUT the returned
ptr != base and so the function returns STATUS_CONFLICTING_ADDRESSES which
returns up the chain and the heap allocation fails.
On my system base being requested is 0x80000000 and ptr being returned is
0x9996d000. ?Th...
2011 Mar 11
0
map_dll in libs/wine/loader.c ,what do it do?
Hi,I am planting wine to a new Operating System.
I found that in libs/wine/loader.c ->map_dll ,a piece of code like:
Code:
/* module address must be aligned on 64K boundary */
addr = (BYTE *)((nt_descr->OptionalHeader.ImageBase + 0xffff) & ~0xffff);
if (wine_anon_mmap( addr, page_size, PROT_READ|PROT_WRITE, MAP_FIXED ) != addr) return NULL;
My questing is the so (such as ntdll.dll.so,kernel32.dll.so) is already loaded ,and can be accessed ,why wine_anon_mmap is needed here?
Thank you.