Page 1 of 1
x84_64 target information: More needed in wiki!
Posted: Tue Mar 24, 2009 11:07 am
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?
Re: x84_64 target information: More needed in wiki!
Posted: Tue Mar 24, 2009 11:25 am
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]
Re: x84_64 target information: More needed in wiki!
Posted: Tue Mar 24, 2009 12:10 pm
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
Re: x84_64 target information: More needed in wiki!
Posted: Tue Mar 24, 2009 1:57 pm
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
Re: x84_64 target information: More needed in wiki!
Posted: Tue Mar 24, 2009 4:30 pm
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 .
Re: x84_64 target information: More needed in wiki!
Posted: Tue Mar 24, 2009 5:36 pm
by Combuster
Specifically?
The wiki isn't meant to replace the intel manuals...
Re: x84_64 target information: More needed in wiki!
Posted: Thu Mar 26, 2009 3:30 pm
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
Re: x84_64 target information: More needed in wiki!
Posted: Fri Mar 27, 2009 12:29 am
by ThymeCypher
Please do Nekros, because I found making a 32-bit kernel 100x easier.
Re: x84_64 target information: More needed in wiki!
Posted: Sat Nov 21, 2009 11:33 pm
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.
Re: x84_64 target information: More needed in wiki!
Posted: Sun Nov 22, 2009 10:21 am
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!