From owner-freebsd-hackers Tue Apr 15 15:53:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA17321 for hackers-outgoing; Tue, 15 Apr 1997 15:53:42 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA17308 for ; Tue, 15 Apr 1997 15:53:37 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA01752; Wed, 16 Apr 1997 00:53:36 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id AAA22117; Wed, 16 Apr 1997 00:48:51 +0200 (MET DST) Message-ID: <19970416004851.LL04161@uriah.heep.sax.de> Date: Wed, 16 Apr 1997 00:48:51 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Cc: krygier@kph.uni-mainz.de (Klaus Werner Krygier) Subject: Re: special memory device References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Klaus Werner Krygier on Apr 15, 1997 09:57:39 +0200 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Klaus Werner Krygier wrote: > Now I want to install a similar device which is compatible to the Sun > solution. It will never be used by read/write i/o but only by mmaped i/o. > It shall be able to do a dynamic remapping of the VMEbus window every time > an address is accessed which is out of the current 64 KB window using the > page fault mechanism. Is this possible? This sounds hard to do. Is your card using a real bus system (EISA, PCI), so that you could map the entire memory at once? This would be the simplest solution. Otherwise, i guess you gotta play VM games, by invalidating the pages for the currently invisible device memory. You have to be notified about the page fault (no idea how this might be done, but i'm sure David or John could chime in here), invalidate the pages for the currently visible window, reprogram your card, and validate the pages for the now visible window. Returning from the page fault handler will continue the application. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)