protected mode

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.
Post Reply
aoss86dev
Posts: 2
Joined: Sat Mar 04, 2006 12:00 am

protected mode

Post by aoss86dev »

How do I use assembly to switch to protected mode and load in my gdt and ldt and that kind of stuff?

Once I do this I can make that the entry point for my kernel and start coding in C!
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: protected mode

Post by JAAman »

this is a very big question, i suggest starting by getting the


**Holy Intel Manuals**


availible for download or free hard-copy at:

## ---- ----- ------ Intel Manuals
(alternativly, you could get the AMD version -- its basically the same set of books, but it is organized differently, and some of the wording is a little different -- some people prefer it, others prefer the Intel ones)

as these books will give you much information about the GDT, IDT, Paging tables, PMode/LMode initialization, and other important details

then read them 2 times, then ask more specific questions as you need them


are you using a boot-loader, or coding your own? this will make a big difference about where to start, and how to do it!



ps: last i checked, both Intel and AMD were in the process of updating the books, therefore, hard-copies were unavailible -- but you can still download the online ones -- hard-copies will be availible once the new revision is ready
Da_Maestro
Member
Member
Posts: 144
Joined: Tue Oct 26, 2004 11:00 pm
Location: Australia

Re: protected mode

Post by Da_Maestro »

You know that there is lots of other threads about this on this forum?

This forum needs a search facility...
Last edited by Da_Maestro on Tue Mar 07, 2006 12:00 am, edited 1 time in total.
Two things are infinite: The universe and human stupidity. But I'm not quite sure about the universe.
--- Albert Einstein
Post Reply