From: Bryan J Smith <b.j.smith@ieee.org>
To: Bryan J Smith <b.j.smith@ieee.org>,
Steve Cohen <stevecoh1@comcast.net>,
Mike McCarty <Mike.McCarty@sbcglobal.net>,
linux-msdos@vger.kernel.org
Subject: Re: EMM386 not installed - protected mode software already running.
Date: Tue, 19 Oct 2010 12:43:41 -0700 (PDT) [thread overview]
Message-ID: <708231.89047.qm@web110810.mail.gq1.yahoo.com> (raw)
In-Reply-To: <38105.3204.qm@web110814.mail.gq1.yahoo.com>
Just a clarification ...
I believe EMS.SYS (please correct my ignorance) actually provides EMS memory
services, including UMB (640-1MiB backfill option) correct? It's the DOS Real86
handler for EMS requests to the XMS memory and DPMI service facilities, which
are provided by DOSEmu.
I didn't mean to say EMS.SYS provides DPMI. There are always interrupt and
other service tie-ins that sometimes have to be <1MiB, hence the existence of
EMS.SYS.
----- Original Message ----
From: Bryan J Smith <b.j.smith@ieee.org>
Refresh yourself:
- http://en.wikipedia.org/wiki/Upper_Memory_Block (UMB)
- http://en.wikipedia.org/wiki/Expanded_memory (EMS)
- http://en.wikipedia.org/wiki/EXtended_Memory_Specification (XMS)
- http://en.wikipedia.org/wiki/VCPI
- http://en.wikipedia.org/wiki/DPMI
EMS boards were created for 286/386 systems so they could address more than
640KiB. EMS could also be used to backfill memory below 1MiB, not used for
other things (BIOS, ROM, video mappings, etc...), that DOS could address in
Real86 mode. These areas were known as UMB. The devicehigh/loadhigh commands
loads programs into UMB areas.
XMS was designed to take advantage of Protected286 and Protected386 memory above
1MiB. One of the first hacks found for Real86 was that the A20 line that
allowed a "final segment" of an extra 64KiB that was actually at 1MiB + 64KiB to
be utilized (segment FFFFh + offset 0000-FFFFh = memory 10000-1FFFF0h), for a
single COM (64KiB) object. Typically this was utilized for DOS itself on i386
systems.
Additionally, on the i386, one could emulate XMS as EMS (and a very few,
select, specially designed 286 systems allowed this as well). This was done
with DOS 6/7 via EMM386.SYS, designed for the new 386Enhanced mode of the new
Windows 3.0, which also introduced DPMI (latter discussion follows). With the
i386 and software-emulated EMS, UMB usage became commonplace for systems.
VCPI, Pioneered by PharLap, was one of the first DOS extender approaches to
allow normally Real86 programs to use and execute beyond 640KiB/1MiB. It took
control of Ring 0, meaning nothing else could utilize it. It was not designed
for sharing, although some environments would use VCPI to run multiple Real86
programs, or specially designed programs for their environment.
DPMI was introduced by Microsoft to support its new 386Enhanced mode in Windows
3.0 (386-only). It shunted the processor between Real86-Protected86, and took
advantage of Virtual86 mode in the 386. DPMI differed from VCPI in the fact
that the DPMI manager (EMM386.SYS) controlled Ring 0 and serviced requests from
other programs via DPMI. This approach continued with Windows 3.x, 95/98/Me
(yes, 386Enhanced -- MS-DOS 7.x was just bundled in 95/98/Me).
The NT Virtual DOS Machine (NTVDM) provides DPMI (and EMS/XMS) in 32-bit
NT-based Windows (4.0, 5.x aka 2000/XP/2003, 6.x aka Vista/2008/7) and controls
Ring 0. DOSEmu provides DPMI (and EMS/XMS) via EMS.SYS, and DOSEmu controls
Ring 0. Anything that already controls Ring 0 is inherently _incompatible_ with
VCPI programs.
This means VCPI programs are incompatible with:
- The NTVDM in any NT-based Windows system
- The EMS.SYS in any DOSEmu-based system
- Any other 32-bit** operating system that provides DPMI and controls Ring 0
- Any Real86 DOS w/EMM386.SYS system that is already providing DPMI to at least
one program
In the case of the last, that means VCPI is incompatible with:
- Real86 mode DOS that has at least one DPMI program running
- Windows 3.x in 386Enhanced mode (or 95/98/Me by default) which uses DPMI
The only way to get a VCPI program (most early-to-mid release PharLap extenders)
is to run:
- DR-DOS/MS-DOS 5/6/7 with EMM386.SYS and _no_ DPMI programs or other Ring 0
usage
- This includes not running any DR-DOS DOS Protected Mode Services (DPMS)
DPMS uses DPMI so select drivers can load above 1MiB, beyond what HIMEM/UMB can
do. DPMS, because it uses DPMI, is incompatible with any program that requires
Ring 0 access, like VCPI. If you're using PharLap, there is a good chance it is
VCPI.
-- Bryan
**NOTE: 64-bit x86-64 processors in Long Mode (48-bit flat addressing, 52-bit
processor address extensions) doesn't even support Virtual86, and requires a
completely new DPMI framework (with emulation of prior registers no longer
supported in this mode).
--
Bryan J Smith Professional, Technical Annoyance
Linked Profile: http://www.linkedin.com/in/bjsmith
------------------------------------------------------------
"Now if you own an automatic ... sell it!
You are totally missing out on the coolest part of driving"
-- Johnny O'Connell
A826849D-9CF0-6C1F-CD7C-8D85ADCB8FD9
1.03.01
next prev parent reply other threads:[~2010-10-19 19:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 13:49 EMM386 not installed - protected mode software already running Steve Cohen
2010-10-19 14:28 ` Steve Cohen
2010-10-19 16:09 ` Frank Cox
2010-10-19 16:16 ` Frank Cox
[not found] ` <4CBDBF81.8010601@sbcglobal.net>
2010-10-19 16:54 ` Steve Cohen
2010-10-19 17:48 ` Bryan J Smith
2010-10-19 19:34 ` Bryan J Smith
2010-10-19 19:43 ` Bryan J Smith [this message]
2010-10-20 2:36 ` Steve Cohen
2010-10-20 15:19 ` Bryan J Smith
2010-10-20 16:14 ` Steve Cohen
2010-10-20 17:00 ` Bryan J Smith
2010-10-20 18:22 ` Mike McCarty
2010-10-20 20:11 ` Frank Cox
[not found] ` <AANLkTinVjXgQaH939Kq1H1B6g=f1ty16bGFdULUqSHDb@mail.gmail.com>
2010-10-20 20:56 ` solarflow99
2010-10-20 21:06 ` Mike McCarty
2010-10-20 23:23 ` solarflow99
2010-10-21 6:42 ` Paul Crawford
2010-10-21 12:29 ` Steve Cohen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=708231.89047.qm@web110810.mail.gq1.yahoo.com \
--to=b.j.smith@ieee.org \
--cc=Mike.McCarty@sbcglobal.net \
--cc=linux-msdos@vger.kernel.org \
--cc=stevecoh1@comcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox