freebsd-dev/sys/powerpc
Marcel Moolenaar dbb95048da Add cpu_flush_dcache() for use after non-DMA based I/O so that a
possible future I-cache coherency operation can succeed. On ARM
for example the L1 cache can be (is) virtually mapped, which
means that any I/O that uses temporary mappings will not see the
I-cache made coherent. On ia64 a similar behaviour has been
observed. By flushing the D-cache, execution of binaries backed
by md(4) and/or NFS work reliably.
For Book-E (powerpc), execution over NFS exhibits SIGILL once in
a while as well, though cpu_flush_dcache() hasn't been implemented
yet.

Doing an explicit D-cache flush as part of the non-DMA based I/O
read operation eliminates the need to do it as part of the
I-cache coherency operation itself and as such avoids pessimizing
the DMA-based I/O read operations for which D-cache are already
flushed/invalidated. It also allows future optimizations whereby
the bcopy() followed by the D-cache flush can be integrated in a
single operation, which could be implemented using on-chips DMA
engines, by-passing the D-cache altogether.
2009-05-18 18:37:18 +00:00
..
aim Add cpu_flush_dcache() for use after non-DMA based I/O so that a 2009-05-18 18:37:18 +00:00
booke Add cpu_flush_dcache() for use after non-DMA based I/O so that a 2009-05-18 18:37:18 +00:00
compile
conf - Use "device\t" and "options \t" for consistency. 2009-05-10 00:00:25 +00:00
fpu Include <sys/types.h> before <sys/systm.h> to get typedefs required 2008-04-09 08:50:37 +00:00
include Improve style(9) 2009-05-14 16:56:56 +00:00
mpc85xx Add suppport for ISA and ISA interrupts to make the ATA 2009-04-24 03:51:11 +00:00
ofw Add an Open Firmware access module for real-mode OF accesses to the PowerPC 2009-04-05 18:40:15 +00:00
powermac Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge mode 2009-04-04 00:22:44 +00:00
powerpc PowerPC common SMP startup and time base rework. 2009-05-14 16:48:25 +00:00
psim Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This 2008-10-14 14:54:14 +00:00