Article View: comp.arch
Article #21997Re: LoadAll?
From: Dr. Scump
Date: Mon, 08 Jan 1990 08:07
Date: Mon, 08 Jan 1990 08:07
27 lines
2119 bytes
2119 bytes
In article <25528@cup.portal.com> mmm@cup.portal.com (Mark Robert Thorson) writes:
>What Tim implied, but didn't say explicitly, was that switching to protected
>mode on a 286 is a one-way trapdoor. Can't get back to real-address mode.
>This is why MS-DOS on the 286 must run in real mode (8086 compatibility mode)
>because it needs to run 8086/8 binaries.
You *can* switch back to real mode on the 286 -- it's possible, though
not trivial. The basic strategy is to save off the registers, etc.
and then trigger a reset of the '286 via the keyboard controller (which
makes the 286 start up in real mode). Then, restore the registers,
etc. and away you go! (over-simplified, but this is the gist of it).
PS/2s have some other method of resetting the 8086 to real mode, but
I'm not sure how it is done.
This is how protected-mode DOS extenders work, e.g. DOS/16M (which
is used in Informix's DOS products and in Lotus 1-2-3 Release 3.0).
As you indicated, the 386 has instructions to switch between each of
the four(?) modes: real, protected (286), native, and virtual 8086.
--
Alan S. Denney @ Informix Software, Inc. "We're homeward bound
{pyramid|uunet}!infmx!aland ('tis a damn fine sound!)
-------------------------------------------- with a good ship, taut & free
Disclaimer: These opinions are mine alone. We don't give a damn,
If I am caught or killed, the secretary when we drink our rum
will disavow any knowledge of my actions. with the girls of old Maui."
Technical Details
Message-ID:
<3015@infmx.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!voder!pyramid!infmx!alandReferences:
<597@unmvax.unm.edu> <25493@cup.portal.com> <25528@cup.portal.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!voder!pyramid!infmx!aland
From: aland@infmx.UUCP (Dr. Scump)
Newsgroups: comp.arch,comp.misc
Subject: Re: LoadAll?
Summary: protected mode -> real mode on '286: can do!
Message-ID: <3015@infmx.UUCP>
Date: 8 Jan 90 08:07:15 GMT
References: <597@unmvax.unm.edu> <25493@cup.portal.com> <25528@cup.portal.com>
Reply-To: aland@infmx.UUCP (alan denney)
Distribution: usa
Organization: INFORMIX Professional Services ("Peace thru Normalization")
Lines: 27