m68k: Rename icache_invalid to invalidate_icache_all
The implementation of icache_invalid appears to be doing what other architectures call invalidate_icache_all so rename to match. Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -185,7 +185,6 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__ /* put C only stuff in this section */
|
#ifndef __ASSEMBLY__ /* put C only stuff in this section */
|
||||||
|
|
||||||
void icache_invalid(void);
|
|
||||||
void dcache_invalid(void);
|
void dcache_invalid(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ int dcache_status(void)
|
|||||||
|
|
||||||
void icache_enable(void)
|
void icache_enable(void)
|
||||||
{
|
{
|
||||||
icache_invalid();
|
invalidate_icache_all();
|
||||||
|
|
||||||
*cf_icache_status = 1;
|
*cf_icache_status = 1;
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ void icache_disable(void)
|
|||||||
u32 temp = 0;
|
u32 temp = 0;
|
||||||
|
|
||||||
*cf_icache_status = 0;
|
*cf_icache_status = 0;
|
||||||
icache_invalid();
|
invalidate_icache_all();
|
||||||
|
|
||||||
#if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E)
|
#if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E)
|
||||||
__asm__ __volatile__("movec %0, %%acr2"::"r"(temp));
|
__asm__ __volatile__("movec %0, %%acr2"::"r"(temp));
|
||||||
@@ -68,7 +68,7 @@ void icache_disable(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void icache_invalid(void)
|
void invalidate_icache_all(void)
|
||||||
{
|
{
|
||||||
u32 temp;
|
u32 temp;
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <cpu_func.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
@@ -399,7 +400,7 @@ static int mcffec_send(struct udevice *dev, void *packet, int length)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_UNIFY_CACHE
|
#ifdef CONFIG_SYS_UNIFY_CACHE
|
||||||
icache_invalid();
|
invalidate_icache_all();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
j = 0;
|
j = 0;
|
||||||
@@ -433,7 +434,7 @@ static int mcffec_recv(struct udevice *dev, int flags, uchar **packetp)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
#ifdef CONFIG_SYS_UNIFY_CACHE
|
#ifdef CONFIG_SYS_UNIFY_CACHE
|
||||||
icache_invalid();
|
invalidate_icache_all();
|
||||||
#endif
|
#endif
|
||||||
/* If nothing received - leave for() loop */
|
/* If nothing received - leave for() loop */
|
||||||
if (info->rxbd[info->rx_idx].cbd_sc & BD_ENET_RX_EMPTY)
|
if (info->rxbd[info->rx_idx].cbd_sc & BD_ENET_RX_EMPTY)
|
||||||
|
|||||||
Reference in New Issue
Block a user