What's 64 Bit Like?

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.
Post Reply
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

What's 64 Bit Like?

Post by Lprogster »

I'm interested about 64 bit OSs. Are there any tutorials for them - I can't find any on Google or the wiki? How easy is it to port an OS to 64 bits? Does GRUB support 64 bit loading?

Also, out of interest, how many of you have 64 bit OSs?

Cheers,
Lster
13postures
Posts: 13
Joined: Sat Apr 28, 2007 1:57 am

Re: What's 64 Bit Like?

Post by 13postures »

I'm in the process of implementing a 64-bit kernel so i can answer a few questions.
Lprogster wrote:I'm interested about 64 bit OSs. Are there any tutorials for them - I can't find any on Google or the wiki?
You mustn't have looked very well. Try this for starters: http://en.wikipedia.org/wiki/64_bit

You should also understand that there is not only one kind of 64-bit architecture. Consult the above link.

Lprogster wrote:How easy is it to port an OS to 64 bits? Does GRUB support 64 bit loading?
Well, at first it might seem easy to make such a port but it needs a lot of work. The first thing you have to do is modify your kernel's data types as fit. The most important thing here is the pointers. Pointers are 32-bits in size on a 32-bit os, but they are 64-bits on a 64-bit os. Check this out: http://www.unix.org/whitepapers/64bit.html. After modifying your data types, you have to create an appropriate pmap module and many many other stuff.

GRUB does not support loading elf64 images.
Lprogster wrote:Also, out of interest, how many of you have 64 bit OSs?
Debian/amd64 here.
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Post by os64dev »

I am also writing a 64-bit OS and indeed there aren't many tutorials around. I got all the information from both the Intel and AMD manuals and of course for osdev.org. First thing build a cross-compiler and build bochs with amd64 support and skip grub or other boot loaders. Build your own bootloader. From that point onwards 64-bit is not much different then 32-bit only how the lowlevel stuff like interrupts are handled, etc.
Author of COBOS
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: What's 64 Bit Like?

Post by Candy »

Lprogster wrote:I'm interested about 64 bit OSs. Are there any tutorials for them - I can't find any on Google or the wiki? How easy is it to port an OS to 64 bits? Does GRUB support 64 bit loading?

Also, out of interest, how many of you have 64 bit OSs?

Cheers,
Lster
*check* -> 64-bit bootcode and an attempt at an OS. Problem is that the bootloader decompresses the kernel wrongly so the 64-bit kernel doesn't work at the moment. Have been working it but overtime at work hinders progress. I expect to have it working (...) again by friday.
Post Reply