diff options
author | Wolfgang Denk <wd@denx.de> | 2007-04-18 16:16:33 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-04-18 16:16:33 +0200 |
commit | 01ebbab0cc19d6a19fa70f40516864edc1e6625d (patch) | |
tree | cff2e0348a6c3b300664d944642eaf6488f1ab12 /lib_blackfin/cache.c | |
parent | 0f5642d7322740ad008a4c5eb0a131d64a6f7a0a (diff) | |
parent | c0707ce65677650b5ceab0500ee50ae5168afef2 (diff) | |
download | u-boot-imx-01ebbab0cc19d6a19fa70f40516864edc1e6625d.zip u-boot-imx-01ebbab0cc19d6a19fa70f40516864edc1e6625d.tar.gz u-boot-imx-01ebbab0cc19d6a19fa70f40516864edc1e6625d.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-blackfin
Diffstat (limited to 'lib_blackfin/cache.c')
-rw-r--r-- | lib_blackfin/cache.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib_blackfin/cache.c b/lib_blackfin/cache.c index a15914b..9d71bcb 100644 --- a/lib_blackfin/cache.c +++ b/lib_blackfin/cache.c @@ -1,7 +1,7 @@ /* * U-boot - cache.c * - * Copyright (c) 2005 blackfin.uclinux.org + * Copyright (c) 2005-2007 Analog Devices Inc. * * (C) Copyright 2000-2004 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -21,17 +21,15 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA */ /* for now: just dummy functions to satisfy the linker */ #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; } |