Re: [patch] vm86: Clear AC on INT

Kasper Dupont (kasperd@daimi.au.dk)
Thu, 01 Aug 2002 19:48:39 +0200


"Richard B. Johnson" wrote:
>
> On Thu, 1 Aug 2002, Kasper Dupont wrote:
> [SNIPPED...]
>
> > want to run it in virtual 86 mode. Thanks to emm386 we probably don't
> > see many DOS programs not working in virtual 86 mode, but emm386 itself
> > plain refuses to load in virtual 86 mode.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> But of course! It's a 32-bit 'trap program', they runs your whole
> computer in VM86 mode, paging in memory from above 1 megabyte to
> some 'window' below 1 megabyte.
>
> Any attempt to load it cause a trap to Linux when the PE bit is
> attempted to be set.
>
> You don't need emm386 because Linux emulates its functionality.

Sure, if you just want to run DOS and DOS programs you could do
better than using emm386. But if you are actually tring to
emulate a PC, it should have been able to load emm386 without
emm386 even noticing the difference. I guess this just proves
that vm86 isn't well suited for a complete emulation.

IMHO nowadays a reasonable requirement for a good architecture
is that it can easily emulate itself. I guess from that point of
view x86 is not a good architecture, but that shouldn't stop us
from trying to get as close as possible.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:razrep@daimi.au.dk
or mailto:mcxumhvenwblvtl@skrammel.yaboo.dk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/