Computing.Net > Forums > Programming > Protected Mode And 32-bit Real Mode

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Protected Mode And 32-bit Real Mode

Reply to Message Icon

Name: renato_enca
Date: July 23, 2004 at 13:32:28 Pacific
OS: Windows XP Pro
CPU/Ram: Intel Celeron 2.4GHz / 25
Comment:

I'm writing my own operating system and I made lots of attempts to switch to Protected Mode, always crashing the system.
Can someone tell me a good URL about switching to Protected Mode?
Another question:Can I use BIOS calls in 32-bit Real Mode (unreal mode)?



Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: July 24, 2004 at 11:05:01 Pacific
Reply:

There's an article about how linux does it at linux.com and a three part series at linuxgazette.com about writing a 'toy' OS that also describes the procedure.

You could also use the source, Luke! - that's (partly) what it's there for.


0

Response Number 2
Name: renato_enca
Date: July 25, 2004 at 13:18:26 Pacific
Reply:

Thanks, Wolfbone!
I'll see if i can solve this problem


0

Response Number 3
Name: Birdman
Date: July 25, 2004 at 22:08:36 Pacific
Reply:

Good luck with your project, I've been working on one of my own for a bit now. Here are the sites I've been using:

http://my.execpc.com/~geezer/osd/index.htm

http://www.midpec.com/djgpp/protmode/index0_1.html#Top

http://www.visopsys.org/osdev/

http://www.500mhz.net/ndx.html

http://osdev.neopages.net/index.php

http://www.nondot.org/sabre/os/articles

http://therx.sourceforge.net/osdev/index.php?page=1

Some notes:
The nondot site is really great... very helpful.

Also, here were the stumbling blocks I hit when working on that particular part:
1. Make sure the GDT is loaded and good to go before switching to protected mode
2. Make sure you change your segment selector values to usuable ones as soon as possible after entering protected mode, so that you have a less likely chance of accidentally using one and faulting
3. If you haven't loaded an IDT, any faults will immediately triple fault, so the code must be perfect. Best to disable interrupts right off the bat until you get things worked out, lest something trigger and triple fault.

Good luck!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Protected Mode And 32-bit Real Mode

Homebrew 32-bit OS problem www.computing.net/answers/programming/homebrew-32bit-os-problem/13053.html

VB 4 32-bit in Win3x with WIN32s www.computing.net/answers/programming/vb-4-32bit-in-win3x-with-win32s/15095.html

protected mode/real mode question www.computing.net/answers/programming/protected-modereal-mode-question/2375.html