NetBSD/sys/arch/arm32
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
..
arm32 bus_dmamem_map() maps DMA safe memory, which is usually one or more 1999-05-25 23:14:03 +00:00
compile Initial commit of the NetBSD/arm32 port. 1996-01-31 23:14:53 +00:00
conf Add the rnd pseudo device. 1999-04-20 09:30:08 +00:00
dev completely remove Mach VM support. all that is left is the all the 1999-03-24 05:50:49 +00:00
doc Sync with reality. 1999-01-01 12:13:49 +00:00
footbridge Fix microtime() to sanely handle calls before the clocks have been 1999-04-23 09:09:04 +00:00
fpe-arm Remove inclusion of sys/device.h 1998-05-01 15:35:43 +00:00
include Install "devmap.h" to "/usr/include/machine" so that the SHARK X11 1999-05-07 20:50:31 +00:00
iomd Don't try and calculate the time in microtime() unless cpu_initclocks() 1999-04-20 09:14:32 +00:00
isa make this compile without 'options IRQSTATS'. 1999-05-11 12:41:15 +00:00
mainbus Make cpu_model big enough to hold the DNARD cpu's identification, and a bit 1999-02-26 12:05:49 +00:00
ofw GC physical_memoryblock. 1999-03-29 10:02:19 +00:00
pci Moved to arch/arm32/include/pci_machdep.h,v 1999-03-19 03:34:22 +00:00
podulebus Copy alignment fix from dev/ic/i82586.c (Um, this copy of the driver 1999-05-21 21:31:37 +00:00
rc7500 Rework layer 2 protocol input routines. Instead of calling e.g. ether_input() 1999-05-18 23:52:51 +00:00
riscpc Changed the way in which virtual address space is reserved for the SA110 1999-04-06 06:57:00 +00:00
shark pull isa_machdep.h in from machine/ instead of from $(MACHINE)/isa/ 1999-03-19 05:13:16 +00:00
vidc completely remove Mach VM support. all that is left is the all the 1999-03-24 05:50:49 +00:00
Makefile Rework the way kernel include files are installed. In the new method, 1998-06-12 23:22:30 +00:00