On Thu, Jul 29, 2004 at 10:04:12AM -0400, Anish Mistry wrote: > I should have a bit of time, once I get the acpi_fuji driver cleaned up and > Nate or Mark can import it. Which direction capitan? :) Look in /usr/src/sys/vm/vm_mmap.c:mmap() for the comment: /* * XXX for non-fixed mappings where no hint is provided or * the hint would fall in the potential heap space, * place it after the end of the largest possible heap. * * There should really be a pmap call to determine a reasonable * location. */ The code currently maps memory without a fixed address above the highest address that the process has used. The problem with Wine is that it needs to reserve the top half of the process address space for use like older versions of Windows. When Wine starts up, it goes through and grabs that memory as soon as it can, then it proceeds to dynamically load it's libraries (the Unix shared libraries that implement the functions in the DLLs). The first load fails because the library can't be mapped above the highest address used. What you need to do is take the hint from the comment above and write a pmap function to determine a reasonable location. You could say that a reasonable location is above the highest address used, if there is space up there. Otherwise find a hole in the address space. -- John BirrellReceived on Thu Jul 29 2004 - 19:12:12 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:03 UTC