[U-Boot-Users] [PATCH] Fix missing dcache_enable symbol and declare cache function as weak
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Mon Apr 21 13:37:48 CEST 2008
Recent commit a4986459 adds reference to dcache_enable set dcache and ecache
function as __weak.
For cache status function it will return 0 if the function is not implemented
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
diff --git a/include/common.h b/include/common.h
index f2adebf..ca68802 100644
--- a/include/common.h
+++ b/include/common.h
@@ -386,12 +386,12 @@ void wr_ic_adr (uint);
uint rd_dc_cst (void);
void wr_dc_cst (uint);
void wr_dc_adr (uint);
-int icache_status (void);
-void icache_enable (void);
-void icache_disable(void);
-int dcache_status (void);
-void dcache_enable (void);
-void dcache_disable(void);
+int icache_status (void) __attribute__((weak));
+void icache_enable (void) __attribute__((weak));
+void icache_disable(void) __attribute__((weak));
+int dcache_status (void) __attribute__((weak));
+void dcache_enable (void) __attribute__((weak));
+void dcache_disable(void) __attribute__((weak));
void relocate_code (ulong, gd_t *, ulong) __attribute__ ((noreturn));
ulong get_endaddr (void);
void trap_init (ulong);
--
1.5.4.5
More information about the U-Boot
mailing list