Subject: Re: While we're talking about binary emulation (FreeBSD)
To: David Maxwell <david@fundy.ca>
From: Todd Vierling <tv@pobox.com>
List: port-i386
Date: 09/30/1998 07:52:44
On Wed, 30 Sep 1998, David Maxwell wrote:

:  11311 validate CALL  madvise(0x54000,0x1000,0x5)
:  11311 validate RET   madvise -1 errno 45 Operation not supported

Grumble.  It seems to actually care what madvise() returns.  We don't yet
support it, but it _should_ gracefully continue without that support.

You can hack around this by editing src/sys/kern/[u]vm/[u]vm_mmap.c
(depending on whether you're using -current and UVM, or the Mach VM system).
Find the function sys_madvise() and change:

       return (EOPNOTSUPP);

to:

       return (0);

I've thought several times about doing this directly, as many operating
systems we emulate (SunOS, FreeBSD) expect a working madvise() call.  I'll
finally bite the bullet and fix this in -current.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)