]> git.baikalelectronics.ru Git - kernel.git/commit
sh: disable aliased page logic on NOMMU models
authorRich Felker <dalias@libc.org>
Tue, 22 Mar 2016 22:02:23 +0000 (22:02 +0000)
committerRich Felker <dalias@libc.org>
Sun, 31 Jul 2016 03:33:32 +0000 (03:33 +0000)
commit97749d647e3747bebdc8d80cb3eaeec66dc0b9da
tree4ea86ec76b955599269de0963ed4851406997cfc
parentcb642d47726f5733d1c708fae203d38e109fcef8
sh: disable aliased page logic on NOMMU models

SH3/4 (with MMU) have a virtually indexed cache, requiring explicit
work to avoid consistency problems arising from having the same
physical address range cached in multiple cache lines. This is
unneeded for the NOMMU case, and some of the resulting code paths
(kmap_coherent) don't work. SH2 only avoided this problem by having a
4-way associative cache with way size equal to the page size (4k),
yielding no cache index bits outside of the page offset and thus no
aliases.

Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/kernel/cpu/init.c
arch/sh/mm/cache.c