summaryrefslogtreecommitdiff
path: root/lib_ppc/cache.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-10-16 15:01:15 +0200
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:03 +0200
commit6d0f6bcf337c5261c08fabe12982178c2c489d76 (patch)
treeae13958ffa9c6b58c2ea97aac07a4ad2f04a350f /lib_ppc/cache.c
parent71edc271816ec82cf0550dd6980be2da3cc2ad9e (diff)
rename CFG_ macros to CONFIG_SYS
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'lib_ppc/cache.c')
-rw-r--r--lib_ppc/cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib_ppc/cache.c b/lib_ppc/cache.c
index 5bfb22070..72c838e41 100644
--- a/lib_ppc/cache.c
+++ b/lib_ppc/cache.c
@@ -30,11 +30,11 @@ void flush_cache (ulong start_addr, ulong size)
#ifndef CONFIG_5xx
ulong addr, end_addr = start_addr + size;
- if (CFG_CACHELINE_SIZE) {
- addr = start_addr & (CFG_CACHELINE_SIZE - 1);
+ if (CONFIG_SYS_CACHELINE_SIZE) {
+ addr = start_addr & (CONFIG_SYS_CACHELINE_SIZE - 1);
for (addr = start_addr;
addr < end_addr;
- addr += CFG_CACHELINE_SIZE) {
+ addr += CONFIG_SYS_CACHELINE_SIZE) {
asm ("dcbst 0,%0": :"r" (addr));
WATCHDOG_RESET();
}
@@ -42,7 +42,7 @@ void flush_cache (ulong start_addr, ulong size)
for (addr = start_addr;
addr < end_addr;
- addr += CFG_CACHELINE_SIZE) {
+ addr += CONFIG_SYS_CACHELINE_SIZE) {
asm ("icbi 0,%0": :"r" (addr));
WATCHDOG_RESET();
}