NetBSD/sys/arch/vax
thorpej 5832084eaf bus_dmamem_map() maps DMA safe memory, which is usually one or more
managed pages, into KVA space.  Since the pages are managed, we should
use pmap_enter(), not pmap_kenter_pa().

Also, when entering the mappings, enter with an access_type of
VM_PROT_READ | VM_PROT_WRITE.  We do this for a couple of reasons:

	(1) On systems that have H/W mod/ref attributes, the hardware
	    may not be able to track mod/ref done by a bus master.

	(2) On systems that have to do mod/ref emulation, this prevents
	    a mod/ref page fault from potentially happening while in an
	    interrupt context, which can be problematic.

This latter change is fairly important if we ever want to be able to
transfer DMA-safe memory pages to anonymous memory objects; we will need
to know that the pages are modified, or else data could be lost!

Note that while the pages are unowned (i.e. "just DMA-safe memory pages"),
they won't consume any swap resources, as the mappings are wired, and
the pages aren't on the active or inactive queues.
1999-05-25 23:14:03 +00:00
..
bi completely remove Mach VM support. all that is left is the all the 1999-03-24 05:50:49 +00:00
boot Use common routines to identify cpu type. 1999-05-23 21:58:19 +00:00
compile new RCS ID format. 1994-10-26 08:06:10 +00:00
conf bus.h'ify more of the vax code. 1999-05-24 20:10:30 +00:00
consolerl RCSID Police. 1998-01-05 20:51:25 +00:00
floppy RCSID Police. 1998-01-05 20:51:25 +00:00
if Make this file compile again. 1999-05-23 23:06:24 +00:00
include bus.h'ify more of the vax code. 1999-05-24 20:10:30 +00:00
mba Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change 1999-01-01 21:43:17 +00:00
mscp Fix deadlock bug. Pointed out by maximum entropy. 1998-12-09 19:02:31 +00:00
uba bus.h'ify more of the vax code. 1999-05-24 20:10:30 +00:00
vax bus_dmamem_map() maps DMA safe memory, which is usually one or more 1999-05-25 23:14:03 +00:00
vsa Don't detect glass tty if the machine is a workstation. 1999-05-20 23:00:58 +00:00
Makefile Rework the way kernel include files are installed. In the new method, 1998-06-12 23:22:30 +00:00