x86_64: Booting kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

Re: x86_64: Booting kernel

Post by ThymeCypher »

Well, this is odd. Probably because I am using a x64 compiler without loading long mode? Not sure, but I got it to work; Index starts at 1, not 0. I made a function to output text, and it's not working at all, and I must link the kernel second to the boot loader. Perhaps I just need to setup memory or something? Not sure, I'm still new at this and all ;P
ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

Re: x86_64: Booting kernel

Post by ThymeCypher »

I used the code from XOmB as I was suggested to do, and I'm getting the following issue when trying to boot the kernel:

grub> kernel 200+18
[Multiboot-kludge, loadaddr=0x200000, text-and-data=0x80019000

Error 13: Invalid or unsupported executable format

What next?
whowhatwhere
Member
Member
Posts: 199
Joined: Sat Jun 28, 2008 6:44 pm

Re: x86_64: Booting kernel

Post by whowhatwhere »

use a multiboot-32bit elf64 loader. everything else fails.
Post Reply