linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* emm386 hangs when booting from linux
@ 2003-02-28  3:18 H.Rosmanith (Kernel Mailing List)
  2003-02-28  3:30 ` H.Rosmanith (Kernel Mailing List)
  2003-02-28 22:54 ` Richard B. Johnson
  0 siblings, 2 replies; 11+ messages in thread
From: H.Rosmanith (Kernel Mailing List) @ 2003-02-28  3:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: Herbert Rosmanith


hello,

for some reason, I am using the "switch to 16 bit realmode" function
present in the linux kernel to execute various 16bit code. One thing
that I am doing is to read the mbr off a harddisk to 0x7c00 and then
jump to there. This allows to e.g. "quickboot dos" from linux without
having to go through bios startup.

I got this working with *one* exception: as soon as I load emm386
in config.sys, the system hangs. It doesn't hang completely, e.g.
the num-lock led changes light when pressing num-lock, and ctrlaltdel
reboots the system. When I "REM"ark the emm386.exe, then dos will
boot and display a "C:\>" prompt.

"machine_real_restart" is in <arch/i386/kernel/process.c> - possibly
it forgets to reset something particular in the cpu/mmu...and later on,
emm386.exe will hang the system. Interestingly, DOS4GW will *not* hang
the system and vertex-inducing games like doom & co. will work like
a charm (woah ... I haven't been playing doom for ages! <streisand> "memories"
</streisand>).

emm386.exe is about 116k byte, so it's probably not written in asm.
I've been searching the web for source-code for some emm, but so far,
no luck. any hint about what could be wrong? maybe I am only 1 bit
away from success, but I will like searching the bit in the haystack.

thanks in advance,
herp

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-03-06 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-28  3:18 emm386 hangs when booting from linux H.Rosmanith (Kernel Mailing List)
2003-02-28  3:30 ` H.Rosmanith (Kernel Mailing List)
2003-02-28 22:54 ` Richard B. Johnson
2003-02-28 23:26   ` H.Rosmanith (Kernel Mailing List)
2003-02-28 23:26   ` Kasper Dupont
2003-02-28 23:43     ` H.Rosmanith (Kernel Mailing List)
2003-02-28 23:59       ` Kasper Dupont
2003-03-01  0:05         ` hr
2003-03-02 10:26         ` H.Rosmanith (Kernel Mailing List)
2003-03-02 10:29           ` H.Rosmanith (Kernel Mailing List)
2003-03-06 10:25           ` Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).