summaryrefslogtreecommitdiff
path: root/lib_blackfin/cache.c
diff options
context:
space:
mode:
authorAubrey Li <aubrey.adi@gmail.com>2007-04-05 18:34:06 +0800
committerAubrey Li <aubrey.adi@gmail.com>2007-04-05 18:34:06 +0800
commitc0707ce65677650b5ceab0500ee50ae5168afef2 (patch)
tree73f290081e8d3d624caba69091d6b99918a217a1 /lib_blackfin/cache.c
parent7b7e30aa64bb6657a1bfd32fdbdbfeb561e6a48d (diff)
downloadu-boot-imx-c0707ce65677650b5ceab0500ee50ae5168afef2.zip
u-boot-imx-c0707ce65677650b5ceab0500ee50ae5168afef2.tar.gz
u-boot-imx-c0707ce65677650b5ceab0500ee50ae5168afef2.tar.bz2
[Blackfin][PATCH] Kill off a bunch of common local prototypes
Diffstat (limited to 'lib_blackfin/cache.c')
-rw-r--r--lib_blackfin/cache.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib_blackfin/cache.c b/lib_blackfin/cache.c
index 6c3c17b..9d71bcb 100644
--- a/lib_blackfin/cache.c
+++ b/lib_blackfin/cache.c
@@ -29,9 +29,7 @@
#include <config.h>
#include <common.h>
#include <asm/blackfin.h>
-
-extern void blackfin_icache_flush_range(unsigned long, unsigned long);
-extern void blackfin_dcache_flush_range(unsigned long, unsigned long);
+#include "cache.h"
void flush_cache(unsigned long dummy1, unsigned long dummy2)
{
@@ -43,9 +41,9 @@ void flush_cache(unsigned long dummy1, unsigned long dummy2)
return;
if (icache_status())
- blackfin_icache_flush_range(dummy1, dummy1 + dummy2);
+ blackfin_icache_flush_range((void*)dummy1, (void*)(dummy1 + dummy2));
if (dcache_status())
- blackfin_dcache_flush_range(dummy1, dummy1 + dummy2);
+ blackfin_dcache_flush_range((void*)dummy1, (void*)(dummy1 + dummy2));
return;
}