[haiku] Re: [GSoC] x86_64 application rough draft

  • From: Nathan Mentley <nathanmentley@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Wed, 7 Apr 2010 20:55:44 -0400

On Wed, Apr 7, 2010 at 8:46 PM, Rene Gollent <anevilyak@xxxxxxxxx> wrote:

> On Wed, Apr 7, 2010 at 8:22 PM, Nathan Mentley <nathanmentley@xxxxxxxxx>
> wrote:
> > About GCC and Haiku Executables. Correct me if I'm wrong... I'm by far
> not
> > an expert here, but I was under the impression that the haiku bootloader
> and
> > kernel are standard 64bit ELF binaries... If that's the case then the
> > current GCC 4 should be able to output the kernel and second stage of the
> > bootloader.
>
> They're actually ELF32 at the moment, so not entirely the same.
>
> > I do have another question tho. I haven't found any 16bit BeOS code, but
> > does any exist?
>
> 16-bit BeOS code, no. However, Haiku's VESA driver does use vm86 calls
> to switch out of protected mode and initiate bios calls for video mode
> switching which might (not familiar enough with the specifics here as
> to what is and isn't allowed in x86_64 mode) be affected.
>
> Regards,
>
> Rene
>
> Rene, Yeah, I for sure misspoke there. They're currently ELF32, but for the
x86_64 port they'll be ELF64. Assuming I add support in the bootloader to
load ELF64.

I'll look into VESA bios calls. Thanks for the heads up.

Other related posts: