x84_64 target information: More needed in wiki!

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

x84_64 target information: More needed in wiki!

Post by ThymeCypher »

It seems a lot of the 64-bit targeted information is based on quick observations and whatnot, not actual facts and proven work. I'm not trying to insult anyone here by saying this, but the errors I encountered were mentioned under the troubleshooting section for the cross compiler, but the actual problems I found, had much different solutions. If anyone would like to join me, I'm going to thoroughly try to put together more information for the wiki on x86-64 building. Sadly, this site has very little information on it, and very little past the bare bones kernel for any architecture, yet this site does have the most... it would be excellent to see this site actually go beyond that.

(Also, should we also add AT&T syntax ASM to portions that only show Intel? Seeing as some of us only use as and not nasm...)

Sorry, I just ran upon something useful; AS supports Intel syntax, with the use of -msyntax=intel. Should be documented? :)
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: x84_64 target information: More needed in wiki!

Post by AJ »

Hi,

If you want to add more information to the wiki, then great. I'm not quite sure what the cross-compiler issue is, though; it works for me whether I target i686-elf i586-elf or x86_64-pc-elf. For older versions of the toolchain, there is a GCC Cross-Compiler for x86_64 article.

Once you are past the barebones stuff, this site has additional info on the GDT, IDT, hardware, porting a libc, adding C++ support and so on, but it should be remembered the wiki is always a work in progress. If you can tidy anything up or add more detailed information, please do.

Also -msyntax has been documented several times on the forum - you can always use the search facility.

Cheers,
Adam

[Edit:Placed in appropriate category]
ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

Re: x84_64 target information: More needed in wiki!

Post by ThymeCypher »

Just a few inconsistencies with my old code being for x86. Nothing I'd expect to be on the wiki, but stuff that wouldn't hurt :)
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: x84_64 target information: More needed in wiki!

Post by AJ »

Hi,

Could you perhaps give some examples? If it's anything that will improve the wiki, perhaps we could suggest where it should go or better organise the wiki if the information is already there but hidden away somewhere.

Cheers,
Adam
Hellboy
Posts: 7
Joined: Tue Jan 13, 2009 4:31 pm

Re: x84_64 target information: More needed in wiki!

Post by Hellboy »

Hello
take a look in intel manuel document it will provide you a very intresting information on 64 bit architecture but you need a lot of job .
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: x84_64 target information: More needed in wiki!

Post by Combuster »

Specifically?

The wiki isn't meant to replace the intel manuals...
"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 ]
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Re: x84_64 target information: More needed in wiki!

Post by nekros »

Actually, It's incredibly easy to make a 64 bit kernel(binary that is). I'm planning on adding some, more info on getting a elf64 kernel loading to the wiki. Especially after I have my bootloader working
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

Re: x84_64 target information: More needed in wiki!

Post by ThymeCypher »

Please do Nekros, because I found making a 32-bit kernel 100x easier.
rukisama
Posts: 1
Joined: Sat Nov 21, 2009 10:51 pm

Re: x84_64 target information: More needed in wiki!

Post by rukisama »

Yeah, more about x86_64 would be very helpful. It's the wave of the future, and there are many computers out there who can take advantage of it.
Cognition
Member
Member
Posts: 191
Joined: Tue Apr 15, 2008 6:37 pm
Location: Gotham, Batmanistan

Re: x84_64 target information: More needed in wiki!

Post by Cognition »

I've added a section on the specifics of long mode segmentation and links to the x86-64 ABI as well as a draft of the ELF-64 format.
ThymeCypher wrote:(Also, should we also add AT&T syntax ASM to portions that only show Intel? Seeing as some of us only use as and not nasm...)

Sorry, I just ran upon something useful; AS supports Intel syntax, with the use of -msyntax=intel. Should be documented?
This is covered under the GAS article in the wiki already as well as the manuals for GAS itself. As previously mentioned the wiki shouldn't really serve as a replacement for other manuals.

Edit: Syntax!
Reserved for OEM use.
Post Reply