From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: [announce] dosemu-1.3.2
Date: Sun, 22 May 2005 21:10:17 +0400 [thread overview]
Message-ID: <4290BCF9.2070906@aknet.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
Hello.
Zoltan Boszormenyi wrote:
> eject the CD util I exit dosemu. The dosemu internal eject
> command didn't work.
The problem is most likely not
in dosemu itself (kernel? udev?)
Dosemu does what's the attached
simple test-case does, which
fails on FC3 too.
> I have a question. At present, dosemu doesn't run on Linux/x86-64
> (in 64-bit mode) as the vm86 mode is disabled on the hardware.
> How hard would it be to write an in-kernel vm86 emulation?
There are the already-written
CPU emulators. I was playing around
the qemu, which has the vm86()
syscall emulation. It was possible
to run dosemu entirely under the
qemu user-mode emulation, so it
was very promising. I almost got
it to work inside the dosemu, but
at some point its author abandonned
the user-mode support and dosemu
no longer runs under it, and so
I had to abandon my porting effors.
If/when (which is now unlikely)
qemu is fixed, I'll probably look
up that code and complete the work.
There are the other CPU emulators
too, but qemu have the ready-to-use
vm86() emulation, not just the CPU
emulation, so it is the primary
target of course.
Another interesting thing would be
to have the Windows port - someone
already built the dosemu with help
of coLinux, and it even worked.
[-- Attachment #2: cd.c --]
[-- Type: text/plain, Size: 351 bytes --]
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/cdrom.h>
int main() {
int fd;
if ((fd = open("/dev/cdrom", O_RDONLY)) < 0) {
perror("open");
return 1;
}
if (ioctl(fd, CDROMEJECT)) {
perror("ioctl");
}
return 0;
}
next reply other threads:[~2005-05-22 17:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-22 17:10 Stas Sergeev [this message]
2005-05-22 18:20 ` [announce] dosemu-1.3.2 Robert Komar
2005-05-23 3:49 ` Stas Sergeev
2005-05-22 19:33 ` Luigi D. C.
-- strict thread matches above, loose matches on Subject: below --
2005-05-25 5:52 Sylvain Petreolle
2005-05-23 16:26 Stas Sergeev
2005-05-22 7:32 Zoltan Boszormenyi
2005-05-22 16:39 ` Zoltan Boszormenyi
2005-05-20 9:19 Bart Oldeman
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=4290BCF9.2070906@aknet.ru \
--to=stsp@aknet.ru \
--cc=linux-msdos@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.