]> git.karo-electronics.de Git - karo-tx-linux.git/commit
metag: panic if cache aliasing possible
authorJames Hogan <james.hogan@imgtec.com>
Mon, 24 Jun 2013 10:05:19 +0000 (11:05 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 27 Jun 2013 12:49:48 +0000 (13:49 +0100)
commit30dd5f7a573f10383d1fef237c69e6f69a1589e8
treef7218f25b98eb0a496effac9ae0728d0e75c3972
parentd3087c03f0de99bb0fa5fb7de970ace8aabfd31d
metag: panic if cache aliasing possible

If the cache and page size configuration allows for cache aliasing to
occur we warn on boot, but the log messages are easy to miss and will
result is random crashes occuring in userland. Let's panic too in this
case so that the user immediately knows they need to fix the cache
configuration or configured page size.

Also fix the warning messages which display the cache and page sizes to
include newlines, and add the word "Potential" since an actual cache
alias hasn't been detected.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/cachepart.c