Page 1 of 1

YAPMQ (yet another protected mode question)

Posted: Thu Aug 09, 2007 11:36 am
by ubergeek
Hi,
I'm using bootprog to load my kernel. Right now I've got one c++ file compiling to a bin, which goes on the floppy and gets loaded by bootprog.

What I want to know is whether or not I'm in protected mode. I can't figure out from the bootprog code (not very proficient in assembly) whether or not it's putting it in protected mode.

Do I just have to say [bits 32] to get into protected mode? Or can I do that in C++?

Posted: Thu Aug 09, 2007 11:42 am
by salil_bhagurkar
Protected mode is not that easy ubergeek!.. You need to set up a lot of things in assembly to get ur processor into protected mode... It'll take time to understand all that... Have patience.. Search for protected mode on google and see all the code and read every thing you can...

Google will give you many tutorials...

Posted: Thu Aug 09, 2007 12:06 pm
by dc0d32