summaryrefslogtreecommitdiff
path: root/lib_blackfin
diff options
context:
space:
mode:
Diffstat (limited to 'lib_blackfin')
-rw-r--r--lib_blackfin/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_blackfin/cache.c b/lib_blackfin/cache.c
index 41e2a62..870c5bf 100644
--- a/lib_blackfin/cache.c
+++ b/lib_blackfin/cache.c
@@ -40,7 +40,7 @@ void icache_disable(void)
int icache_status(void)
{
- return bfin_read_IMEM_CONTROL() & ENICPLB;
+ return bfin_read_IMEM_CONTROL() & IMC;
}
void dcache_enable(void)
@@ -57,5 +57,5 @@ void dcache_disable(void)
int dcache_status(void)
{
- return bfin_read_DMEM_CONTROL() & ENDCPLB;
+ return bfin_read_DMEM_CONTROL() & ACACHE_BCACHE;
}