NetBSD/sys/arch/i386
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
..
bioscall config file for BIOSCALL assym.h 1998-08-31 23:53:30 +00:00
compile new RCS ID format. 1994-10-27 04:14:23 +00:00
conf Document the 'wdc at isa' flags. 1999-05-19 14:41:54 +00:00
eisa Moved to eisa_machdep.h,v 1999-03-19 02:56:58 +00:00
i386 bus_dmamem_map() maps DMA safe memory, which is usually one or more 1999-05-25 23:14:03 +00:00
include Move the user-set LDT out of the PCB and into the pmap. Applications 1999-05-12 19:28:28 +00:00
isa sync diagnostic printouts in opms_pckbc_probe() with dev/pckbc/psm.c: 1999-05-06 09:10:51 +00:00
pci Moved to arch/i386/include/pci_machdep.h,v 1999-03-19 03:36:14 +00:00
stand don't printf(NULL), not even in the DEBUG case 1999-05-15 15:42:23 +00:00
Makefile (mostly) fix kernel tags support. from Frederick Bruckman in pr-6445. 1998-11-15 20:36:30 +00:00