freebsd-dev/sys/sparc64
Marcel Moolenaar 1a4fcaebe3 o Introduce vm_sync_icache() for making the I-cache coherent with
the memory or D-cache, depending on the semantics of the platform.
    vm_sync_icache() is basically a wrapper around pmap_sync_icache(),
    that translates the vm_map_t argumument to pmap_t.
o   Introduce pmap_sync_icache() to all PMAP implementation. For powerpc
    it replaces the pmap_page_executable() function, added to solve
    the I-cache problem in uiomove_fromphys().
o   In proc_rwmem() call vm_sync_icache() when writing to a page that
    has execute permissions. This assures that when breakpoints are
    written, the I-cache will be coherent and the process will actually
    hit the breakpoint.
o   This also fixes the Book-E PMAP implementation that was missing
    necessary locking while trying to deal with the I-cache coherency
    in pmap_enter() (read: mmu_booke_enter_locked).

The key property of this change is that the I-cache is made coherent
*after* writes have been done. Doing it in the PMAP layer when adding
or changing a mapping means that the I-cache is made coherent *before*
any writes happen. The difference is key when the I-cache prefetches.
2009-10-21 18:38:02 +00:00
..
central Hook up the generic OFW pnpinfo string method. 2009-03-19 21:14:45 +00:00
compile
conf Move the USB wireless drivers down into their own section next to the USB 2009-10-13 19:02:03 +00:00
ebus - Sort device methods. 2009-03-19 20:31:55 +00:00
fhc Hook up the generic OFW pnpinfo string method. 2009-03-19 21:14:45 +00:00
include Change the load base to below 2GB so PIE binaries work including when 2009-10-18 13:08:15 +00:00
isa Add device found in B100. 2009-03-19 20:57:59 +00:00
pci Factor out the duplicated macro for the device type used in the 2009-09-13 14:47:31 +00:00
sbus Hook up the generic OFW pnpinfo string method. 2009-03-19 21:14:45 +00:00
sparc64 o Introduce vm_sync_icache() for making the I-cache coherent with 2009-10-21 18:38:02 +00:00