Page 1 of 1
Protected mode os ?
Posted: Sun Apr 20, 2003 11:00 pm
by echristian
I am developing a os in protected mode and was wondering has anyone ever developed a protected mode os with a gui without using bios calls? MenuEt os uses bios call i think but that is the closest thing i have found so far.
RE:Protected mode os ?
Posted: Sun Apr 20, 2003 11:00 pm
by VoidLogic
You can't get at the BIOS directly from PMODE, you have to switch to real mode right? There is another way, but I can't recall. I use a extender so i'm worry free for the most part there.
-VoidLogic
RE:Protected mode os ?
Posted: Mon Apr 21, 2003 11:00 pm
by carbonBased
That's correct... you either switch back to real-mode or (more efficiently) use the processor's vm86 mode.
As per the original question, however, yes; there are pmode OSs which do not rely on the BIOS for their graphics routines.
I don't have a list, unfortunately. Linux, of course, does this; any mature OS will (no doubt with a bios failsafe mode).
For more information on how to do this, I would reccomend searching for VGADOC on google. VGADOC is a collection of APIs for many different video cards/manufacturers, and can be used in pmode.
You can also, no doubt, dissassemble the BIOS to learn how to program the VGA mode directly... however, the legality of this is questionable; the VGA standard is just that; a standard, and an open one at that. However, BIOSs are traditionally proprietary and copywrited, so... I don't know where the law stands on such a topic.
Cheers,
Jeff
RE:Protected mode os ?
Posted: Tue Jun 24, 2003 11:00 pm
by shahzad
would u plz tell me that way or any other way to handle interrupts in pm
im sick and my time is getting finish to submit my project
how can i do it wid out switching back into real mode
more over ,are there any libraries for multithreading in real mode (coz real mode is easy)
if yes then plz do tel me the links
RE:Protected mode os ?
Posted: Sat Jul 05, 2003 11:00 pm
by Xerroz
Assuming your in Protected Mode, you can manage interrupts by setting up an IDT and by programming the PIC. Look at the intel manuals for further information, I myself am new to OS Development and havnt coded the IDT or PIC yet. Check Chapter 9 of the Intel 386 DX Microprocessor manual (most likely different than newer manuals.