From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: [announce] dosemu-1.3.2 Date: Sun, 22 May 2005 21:10:17 +0400 Message-ID: <4290BCF9.2070906@aknet.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010006080007050201010404" Return-path: Sender: linux-msdos-owner@vger.kernel.org List-Id: To: linux-msdos@vger.kernel.org This is a multi-part message in MIME format. --------------010006080007050201010404 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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. --------------010006080007050201010404 Content-Type: text/plain; name="cd.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="cd.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPGVycm5v Lmg+CiNpbmNsdWRlIDxzeXMvdHlwZXMuaD4KI2luY2x1ZGUgPHN5cy9zdGF0Lmg+CiNpbmNs dWRlIDxmY250bC5oPgojaW5jbHVkZSA8c3lzL2lvY3RsLmg+CiNpbmNsdWRlIDxsaW51eC9j ZHJvbS5oPgoKaW50IG1haW4oKSB7CiAgaW50IGZkOwogIGlmICgoZmQgPSBvcGVuKCIvZGV2 L2Nkcm9tIiwgT19SRE9OTFkpKSA8IDApIHsKICAgIHBlcnJvcigib3BlbiIpOwogICAgcmV0 dXJuIDE7CiAgfQogIGlmIChpb2N0bChmZCwgQ0RST01FSkVDVCkpIHsKICAgIHBlcnJvcigi aW9jdGwiKTsKICB9CiAgcmV0dXJuIDA7Cn0K --------------010006080007050201010404--