sh: cache: Change cache API to defines as U-Boot
A chache API of SH is developped by reference in linux kernel. And API was the same as the linux kernel. This patch change cache API to defines as U-Boot. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
b8f1608645
commit
a633a18f90
|
@ -91,7 +91,7 @@ int cache_control(unsigned int cmd)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dcache_wback_range(u32 start, u32 end)
|
void flush_dcache_range(unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
u32 v;
|
u32 v;
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ void dcache_wback_range(u32 start, u32 end)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void dcache_invalid_range(u32 start, u32 end)
|
void invalidate_dcache_range(unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
u32 v;
|
u32 v;
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
|
|
||||||
void flush_cache (unsigned long addr, unsigned long size)
|
void flush_cache (unsigned long addr, unsigned long size)
|
||||||
{
|
{
|
||||||
dcache_invalid_range( addr , addr + size );
|
invalidate_dcache_range(addr , addr + size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void icache_enable (void)
|
void icache_enable (void)
|
||||||
|
|
|
@ -10,9 +10,6 @@ int cache_control(unsigned int cmd);
|
||||||
struct __large_struct { unsigned long buf[100]; };
|
struct __large_struct { unsigned long buf[100]; };
|
||||||
#define __m(x) (*(struct __large_struct *)(x))
|
#define __m(x) (*(struct __large_struct *)(x))
|
||||||
|
|
||||||
void dcache_wback_range(u32 start, u32 end);
|
|
||||||
void dcache_invalid_range(u32 start, u32 end);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue