2000-12-28 08:48:28

by Greg Stark

[permalink] [raw]
Subject: DOS vm86 not working?


I just tried dosemu again after upgrading to 2.4.0pre11, and it ran my program
about halfway and then started spinning with strace reporting:

vm86(0x1, 0x811f540, 0xa6, 0xfff8fff1, 0x81d30a4) = -1 ENOSYS (Function not implemented)
vm86(0x1, 0x811f540, 0xa6, 0xfff8fff1, 0x81d30a4) = -1 ENOSYS (Function not implemented)
vm86(0x1, 0x811f540, 0xa6, 0xfff8fff1, 0x81d30a4) = -1 ENOSYS (Function not implemented)

I don't see any reason in the source why vm86 would report ENOSYS except if
the system call simply wasn't present. I'm not really familiar with this
source though so I could be missing something. Is there something wrong with
the vm86 code and it's just always returning ENOSYS now?

I haven't tried this program in 2.2 yet, I'll have to do that next time I get
a chance to reboot.

--
greg


2000-12-29 13:34:04

by Erik Mouw

[permalink] [raw]
Subject: Re: DOS vm86 not working?

On Thu, Dec 28, 2000 at 03:16:49AM -0500, Gregory Stark wrote:
> I just tried dosemu again after upgrading to 2.4.0pre11, and it ran my program
> about halfway and then started spinning with strace reporting:
>
> vm86(0x1, 0x811f540, 0xa6, 0xfff8fff1, 0x81d30a4) = -1 ENOSYS (Function not implemented)
> vm86(0x1, 0x811f540, 0xa6, 0xfff8fff1, 0x81d30a4) = -1 ENOSYS (Function not implemented)
> vm86(0x1, 0x811f540, 0xa6, 0xfff8fff1, 0x81d30a4) = -1 ENOSYS (Function not implemented)
>
> I don't see any reason in the source why vm86 would report ENOSYS except if
> the system call simply wasn't present. I'm not really familiar with this
> source though so I could be missing something. Is there something wrong with
> the vm86 code and it's just always returning ENOSYS now?
>
> I haven't tried this program in 2.2 yet, I'll have to do that next time I get
> a chance to reboot.

What version of dosemu are you using? When running the latest kernel
releases you really need a development version of dosemu. I didn't have
any problem running dosesemu-1.1.1 on 2.4.0-test11. Check out
http://www.dosemu.org/ for the latest release.


Erik

--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/