From owner-freebsd-current Sat Mar 16 06:17:41 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA04945 for current-outgoing; Sat, 16 Mar 1996 06:17:41 -0800 (PST) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA04938 Sat, 16 Mar 1996 06:17:38 -0800 (PST) Received: (from root@localhost) by dyson.iquest.net (8.6.11/8.6.9) id JAA04855; Sat, 16 Mar 1996 09:12:37 GMT From: "John S. Dyson" Message-Id: <199603160912.JAA04855@dyson.iquest.net> Subject: Re: Try this vm_mmap.c -- please To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Sat, 16 Mar 1996 09:12:37 +0000 () Cc: dawes@rf900.physics.usyd.edu.au, sos@FreeBSD.org, dyson@FreeBSD.org, current@FreeBSD.org, mmead@Glock.COM In-Reply-To: <244.826979789@time.cdrom.com> from "Jordan K. Hubbard" at Mar 16, 96 04:36:29 am Reply-To: dyson@FreeBSD.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > > Does accelx by any chance use MAP_PRIVATE? > > Bingo! > > Between David's comment here and John's own comment in the latest > vm_mmap.c he sent out which says: > > * On device mmaps we default to map shared -- makes the most > * sense in this case. Does MAP_PRIVATE even make sense on > * devices mmaps??? > > I made the following change: > > if ((type == OBJT_DEVICE)) { > if (flags & (MAP_PRIVATE|MAP_SHARED) == 0) > flags |= MAP_SHARED; > else if (flags & MAP_PRIVATE) > flags &= ~MAP_PRIVATE; > } > I should be able to commit the "fix" early tonite (about 5:00 PM EST), if someone else doesn't get to it before me. Thanks everyone for helping narrow this one down!!! John