x86-64 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.
Locked
silviubogan
Posts: 1
Joined: Mon Feb 09, 2009 11:52 am

x86-64 kernel

Post by silviubogan »

So, my PC and OS are x86-64 and I didn't find on the internet any tutorial on how to make a x86-64 kernel. I tried to make a kernel using elf - it won't link. I tried to make a kernel using elf64 - grub won't boot it. What should I do? I must add some ASM code to make it work? I've followed this tutorial. I am using Ubuntu, ld, gcc, nasm and bochs.

Sorry for the bad English.

PS: Don't blame me, I'm 13.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: x86-64 kernel

Post by 01000101 »

wiki a little harder next time: http://wiki.osdev.org/Creating_a_64-bit_kernel
silviubogan wrote: PS: Don't blame me, I'm 13.
that's the worst excuse I've ever heard...
If you're old enough to take on the task, then you are old enough to recieve responsibilities along the way.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: x86-64 kernel

Post by Love4Boobies »

You will have to build a cross-compiler first. Check the wiki on how to do that. Si adauga-ma in lista de mess daca ai... vezi profilul meu pt ID ;)
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: x86-64 kernel

Post by Combuster »

Google, wiki, ask smart questions, follow the rules and prevent your threads from being locked.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked