freebsd-dev/sys/mips
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
..
adm5120 Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
compile
conf Add a .cvsignore file and along with that put an svn:ignore proprty 2009-06-17 10:48:32 +00:00
idt Make compile again using proper protoypes for 2009-06-17 10:26:37 +00:00
include Define architectural load bases for PIE binaries. Addresses were selected 2009-10-10 15:31:24 +00:00
malta Fix copyrights to reflect the origin of these files. 2009-06-29 16:45:50 +00:00
mips o Introduce vm_sync_icache() for making the I-cache coherent with 2009-10-21 18:38:02 +00:00
sentry5 Remove reference to machine/tlb.h. It no longer exists, and isn't 2008-09-26 04:45:56 +00:00