Enter long mode via DOS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
WindowsNT
Member
Member
Posts: 77
Joined: Thu Jun 26, 2008 12:55 pm

Enter long mode via DOS

Post by WindowsNT »

Hi there - this is my first message to this forum, although I 've read a lot.

I am trying an experimental project to enter the long mode from DOS. While I 've managed to enter the 32-bit protected mode , define segments, use LDT, use paging etc, I am not sure how to setup the paging and/or the GDT (if needed) to switch to long mode. Basically, I 'd like some clean reference on the subject , AMD docs seem somewhat confusing.

Best Regards,
Michael.
User avatar
Candy
Member
Member
Posts: 3883
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: Enter long mode via DOS

Post by Candy »

There's a topic on jumping directly to long mode from realmode that has been resurrected recently. Switching from real mode to long mode directly..
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: Enter long mode via DOS

Post by Combuster »

There's also a page on the global steps on the wiki: X86-64

Oh and, please change your username, its bound to give you problems.
"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 ]
Locked