mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08:00
sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
befe0756d5
commit
1ae911cba4
@ -23,6 +23,7 @@
|
|||||||
#define MAX_OCACHE_PAGES 32
|
#define MAX_OCACHE_PAGES 32
|
||||||
#define MAX_ICACHE_PAGES 32
|
#define MAX_ICACHE_PAGES 32
|
||||||
|
|
||||||
|
#ifdef CONFIG_CACHE_WRITEBACK
|
||||||
static void sh2a_flush_oc_line(unsigned long v, int way)
|
static void sh2a_flush_oc_line(unsigned long v, int way)
|
||||||
{
|
{
|
||||||
unsigned long addr = (v & 0x000007f0) | (way << 11);
|
unsigned long addr = (v & 0x000007f0) | (way << 11);
|
||||||
@ -34,6 +35,7 @@ static void sh2a_flush_oc_line(unsigned long v, int way)
|
|||||||
__raw_writel(data, CACHE_OC_ADDRESS_ARRAY | addr);
|
__raw_writel(data, CACHE_OC_ADDRESS_ARRAY | addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v)
|
static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user