OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 6:49 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: x84_64 target information: More needed in wiki!
PostPosted: Tue Mar 24, 2009 11:07 am 
Offline

Joined: Tue Mar 24, 2009 10:59 am
Posts: 21
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? :)


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Tue Mar 24, 2009 11:25 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
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]


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Tue Mar 24, 2009 12:10 pm 
Offline

Joined: Tue Mar 24, 2009 10:59 am
Posts: 21
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 :)


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Tue Mar 24, 2009 1:57 pm 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
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


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Tue Mar 24, 2009 4:30 pm 
Offline

Joined: Tue Jan 13, 2009 4:31 pm
Posts: 7
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 .


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Tue Mar 24, 2009 5:36 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Thu Mar 26, 2009 3:30 pm 
Offline
Member
Member
User avatar

Joined: Wed Mar 05, 2008 9:10 pm
Posts: 391
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


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Fri Mar 27, 2009 12:29 am 
Offline

Joined: Tue Mar 24, 2009 10:59 am
Posts: 21
Please do Nekros, because I found making a 32-bit kernel 100x easier.


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Sat Nov 21, 2009 11:33 pm 
Offline

Joined: Sat Nov 21, 2009 10:51 pm
Posts: 1
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.


Top
 Profile  
 
 Post subject: Re: x84_64 target information: More needed in wiki!
PostPosted: Sun Nov 22, 2009 10:21 am 
Offline
Member
Member

Joined: Tue Apr 15, 2008 6:37 pm
Posts: 191
Location: Gotham, Batmanistan
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 48 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group