[haiku-development] Re: Implement 32 bit userland support for 64 bit Haiku

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 02 May 2018 11:57:36 +0000

Hi Jérôme,

On Tue, May 1, 2018 at 11:46 AM Jérôme Duval <jerome.duval@xxxxxxxxx> wrote:

* the runtime_loader would get elf32 detected for the primary arch and
elf64 detected for the secondary arch.
* the kernel needs to handle the userArgs and userEnv for the target
arch. I tried a conversion from 64-bit to 32-bit, this works but is
very ugly. Ideas welcome.


Something else that may need to be considered here: for a 32-bit process,
any memory mapping-related operations (mmap, loading executable images into
the team's address space, etc.) need to take into account that the area
needs to fit within the bounds of a 32-bit virtual address space. Not sure
what changes that would entail on the kernel/VM side for that right now.

Regards,

Rene

Other related posts: