Hello gang,
I'm trying to make an experimental kernel multiboot compatible on amd64 and make it run in long mode. This kernel currently compiles and boots on i386 using Grub Legacy. However, Grub Legacy cannot boot elf64 images as this thread also states http://www.osdev.org/phpBB2/viewtopic.p ... ight=elf64.
Does GRUB2 support elf64 images without problems??
Thanks
booting elf64 image
-
- Posts: 13
- Joined: Sat Apr 28, 2007 1:57 am
You could load elf32 binary, and an elf64 module for it, and have the elf32 binary setup an environment where you can switch to long mode, then have rest of the kernel in the elf64 module. That should work.
I don't know much about 64 though, so can't help with the details.
I don't know much about 64 though, so can't help with the details.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.