OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:56 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: osdev wiki talks little on x64 long mode and UEFI protocols?
PostPosted: Fri Oct 23, 2015 8:09 am 
Offline

Joined: Thu Nov 27, 2014 8:23 pm
Posts: 11
I find it is easier today to develop an os with uefi and amd64 platform, with the help of a project called UEFI:SIMPlE,
since uefi has set up the long mode for you and you can enable paging by a single call to SetVirtualMemory.
Besides, using the up-to-date technologies are more inspiring and interesting.

However I have to search the UEFI spec and intel manual all the time just to find some data structures and functions.
I believe it will be helpful if there are more about x64 and UEFI in the wiki.

By the way I recommend the wiki talks about UEFI:SIMPLE.


Top
 Profile  
 
 Post subject: Re: osdev wiki talks little on x64 long mode and UEFI protoc
PostPosted: Fri Oct 23, 2015 8:13 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
That's a great chance for you to add some content to the Wiki!


Top
 Profile  
 
 Post subject: Re: osdev wiki talks little on x64 long mode and UEFI protoc
PostPosted: Fri Oct 23, 2015 9:01 am 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
I took a look at UEFI:Simple. (https://github.com/pbatard/uefi-simple) It's basically just gnu-efi with a Makefile...

I found an easier way: just use the mingw toolchain to produce a proper PE. This works for both 32 and 64 bits.

Here is my code:
https://github.com/kiznit/kiznix/tree/m ... c/boot/efi

Toolchain for 32 bits:
https://github.com/kiznit/kiznix/blob/m ... -efi.cmake

Toolchain for 64 bits:
https://github.com/kiznit/kiznix/blob/m ... -efi.cmake

If you are unfamiliar with CMake and using toolchains, check the Makefile here:
https://github.com/kiznit/kiznix/blob/master/Makefile

_________________
https://github.com/kiznit/rainbow-os


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 20 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