freebsd-dev/sys/powerpc
Jason A. Harmening 713841afb2 Add two new pmap functions:
vm_offset_t pmap_quick_enter_page(vm_page_t m)
void pmap_quick_remove_page(vm_offset_t kva)

These will create and destroy a temporary, CPU-local KVA mapping of a specified page.

Guarantees:
--Will not sleep and will not fail.
--Safe to call under a non-sleepable lock or from an ithread

Restrictions:
--Not guaranteed to be safe to call from an interrupt filter or under a spin mutex on all platforms
--Current implementation does not guarantee more than one page of mapping space across all platforms. MI code should not make nested calls to pmap_quick_enter_page.
--MI code should not perform locking while holding onto a mapping created by pmap_quick_enter_page

The idea is to use this in busdma, for bounce buffer copies as well as virtually-indexed cache maintenance on mips and arm.

NOTE: the non-i386, non-amd64 implementations of these functions still need review and testing.

Reviewed by:	kib
Approved by:	kib (mentor)
Differential Revision:	http://reviews.freebsd.org/D3013
2015-08-04 19:46:13 +00:00
..
aim Add two new pmap functions: 2015-08-04 19:46:13 +00:00
booke Add two new pmap functions: 2015-08-04 19:46:13 +00:00
conf Implement the lockstat provider using SDT(9) instead of the custom provider 2015-07-19 22:14:09 +00:00
cpufreq Some style(9) fixes 2013-12-13 05:54:25 +00:00
fpu Kernel support for the Vector-Scalar eXtension (VSX) found on the POWER7 2015-02-22 21:40:27 +00:00
include Add two new pmap functions: 2015-08-04 19:46:13 +00:00
mambo CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
mpc85xx Add a PCI bridge for the Freescale PCIe Root Complex 2015-05-11 20:58:05 +00:00
ofw Provide the number of interrupt resources added to the list 2015-05-15 13:55:18 +00:00
powermac Allow PowerMac systems to be booted from an FDT as well as Open Firmware. 2015-03-10 16:01:43 +00:00
powerpc Add two new pmap functions: 2015-08-04 19:46:13 +00:00
ps3 Add support for USB display link adapters to the FB and VT drivers. 2015-03-07 20:45:15 +00:00
pseries CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
psim Move Open Firmware device root on PowerPC, ARM, and MIPS systems to 2014-02-05 14:44:22 +00:00