freebsd-nq/sys/mips
Alan Cox 37657ad5fb Invalidate the mapping before updating its physical address.
Doing so ensures that all threads sharing the pmap have a consistent
view of the mapping.  This fixes the problem described in the commit
log message for r329254 without the overhead of an extra fault in the
common case.  (Once the riscv pmap_enter() implementation is similarly
modified, the workaround added in r329254 can be removed, reducing the
overhead of CoW faults.)

See also r335784 for amd64.  The mips implementation of pmap_enter()
already reused the PV entry from the old mapping.

Reviewed by:	kib, markj
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D16199
2018-07-13 17:12:50 +00:00
..
atheros Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
beri Add SMP support for BERI CPU. 2018-04-12 17:43:19 +00:00
broadcom bhnd(4): Use the new BHND_CAP_BP64 capability flag to exclude DMA 2018-03-29 19:48:50 +00:00
cavium Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
conf Remove duplicate configuration values as they are already defined in 2018-07-06 13:31:06 +00:00
gxemul sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
include Back pcpu zone with domain correct pages 2018-07-06 02:06:03 +00:00
ingenic Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
malta Support 2GB of memory on Malta systems with FreeBSD/mips. 2018-06-28 21:27:34 +00:00
mediatek Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
mips Invalidate the mapping before updating its physical address. 2018-07-13 17:12:50 +00:00
nlm Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
sibyte sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00