sh: Support explicit L1 cache disabling.
This reworks the cache mode configuration in Kconfig, and allows for explicit selection of write-back/write-through/off configurations. All of the cache flushing routines are optimized away for the off case. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -145,7 +145,7 @@ repeat:
|
||||
|
||||
ctrl_outl(vpn | PMB_V, mk_pmb_addr(pos));
|
||||
|
||||
#ifdef CONFIG_SH_WRITETHROUGH
|
||||
#ifdef CONFIG_CACHE_WRITETHROUGH
|
||||
/*
|
||||
* When we are in 32-bit address extended mode, CCR.CB becomes
|
||||
* invalid, so care must be taken to manually adjust cacheable
|
||||
|
Reference in New Issue
Block a user