🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6599

Re: MS-DOS in 386 protected mode

#6599
From: Legene
Date: Fri, 20 Nov 1992 19:31
25 lines
2008 bytes
robert@alkymi.unit.no (Robert Schmidt) writes:

>In article <37619@uflorida.cis.ufl.edu>, ggh@reef.cis.ufl.edu (Greg Huey - Aymer deGregory) writes:
>> 
>>   Im trying to write a 'bare-bones' multi-processing os for the 386.
>> I dont wont to create my own dos, obviously I want to use MS-DOS...
>> Question is, how do I do this in protected mode?
>>   Presumably, I create the GDT, LDTs, TSSs, IDTs, and the viarious gates...
>> But no matter HOW I map virtual memory with the GDT, LDTs, I cannot make
>> the virtual memory transparent, due to the priv bits and table indicator
>> bit. I need to put the 386 in protected mode, but it has to look the
>> same to MS-DOS, otherwise MS-DOS will fail, wont it? For instance, MS-DOS
>> knows one of its buffer is at seg:offs -- when I put the 386 into protected
>> mode, seg, rather than being a simple address, will now be treated as a
>> selection index into the GDT or LDT.

Well, you might set up your GDT and LDT so that they map segments to the
same place they would have been otherwise.  Then maybe you can reserve
a memory space from DOS and then, after you've reserved it, change it
to point to somewhere in extended memory.  You probably couldn't use
it for code, but maybe you could use it to store data in.
    You'd have to remap the segment back where DOS expects it to be
before terminating your program, of course.  And this would't much help
in multi-tasking DOS programs made by others, it might just make your
own programs smaller in DOS memory so you can fit more in.
Technical Details
Message-ID: <1992Nov20.193105.5699@ucselx.sdsu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!maxc0452
References: <37619@uflorida.cis.ufl.edu> <1992Nov19.170201.18621@ugle.unit.no>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!maxc0452
From: maxc0452@ucselx.sdsu.edu (Legene)
Subject: Re:  MS-DOS in 386 protected mode
Message-ID: <1992Nov20.193105.5699@ucselx.sdsu.edu>
Organization: San Diego State University Computing Services
References: <37619@uflorida.cis.ufl.edu> <1992Nov19.170201.18621@ugle.unit.no>
Date: Fri, 20 Nov 1992 19:31:05 GMT
Lines: 28