diff options
author | Jan Henrik Weinstock <jan.weinstock@ice.rwth-aachen.de> | 2015-11-04 17:26:10 +0100 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2017-11-03 14:01:15 +0900 |
commit | 4ee93d80ad73980826d582c7c37caa9597822001 (patch) | |
tree | aae34814c80135a8a385269e9a9e07892e36ac61 /arch/openrisc/include/asm/Kbuild | |
parent | c056718464512da06d7f65a27d5e4f1707b24c80 (diff) | |
download | talos-obmc-linux-4ee93d80ad73980826d582c7c37caa9597822001.tar.gz talos-obmc-linux-4ee93d80ad73980826d582c7c37caa9597822001.zip |
openrisc: add cacheflush support to fix icache aliasing
On OpenRISC the icache does not snoop data stores. This can cause
aliasing as reported by Jan. This patch fixes the issue to ensure icache
is properly synchronized when code is written to memory. It supports both
SMP and UP flushing.
This supports dcache flush as well for architectures that do not support
write-through caches; most OpenRISC implementations do implement
write-through cache however. Dcache flushes are done only on a single
core as OpenRISC dcaches all support snooping of bus stores.
Signed-off-by: Jan Henrik Weinstock <jan.weinstock@ice.rwth-aachen.de>
[shorne@gmail.com: Squashed patches and wrote commit message]
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/include/asm/Kbuild')
-rw-r--r-- | arch/openrisc/include/asm/Kbuild | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild index 5f066780d870..6eb16719549e 100644 --- a/arch/openrisc/include/asm/Kbuild +++ b/arch/openrisc/include/asm/Kbuild @@ -1,7 +1,6 @@ generic-y += barrier.h generic-y += bug.h generic-y += bugs.h -generic-y += cacheflush.h generic-y += checksum.h generic-y += clkdev.h generic-y += current.h |