x84_64 target information: More needed in wiki!
-
- Posts: 21
- Joined: Tue Mar 24, 2009 10:59 am
x84_64 target information: More needed in wiki!
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?
(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!
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]
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]
-
- Posts: 21
- Joined: Tue Mar 24, 2009 10:59 am
Re: x84_64 target information: More needed in wiki!
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!
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
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!
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 .
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 .
- Combuster
- 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!
Specifically?
The wiki isn't meant to replace the intel manuals...
The wiki isn't meant to replace the intel manuals...
Re: x84_64 target information: More needed in wiki!
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
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
-
- Posts: 21
- Joined: Tue Mar 24, 2009 10:59 am
Re: x84_64 target information: More needed in wiki!
Please do Nekros, because I found making a 32-bit kernel 100x easier.
Re: x84_64 target information: More needed in wiki!
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!
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.
Edit: Syntax!
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.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?
Edit: Syntax!
Reserved for OEM use.