mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-26 11:28:28 +00:00
25 lines
493 B
C
25 lines
493 B
C
|
/*
|
||
|
* Blackfin cache control code (simpler control-style functions)
|
||
|
*
|
||
|
* Copyright 2004-2008 Analog Devices Inc.
|
||
|
*
|
||
|
* Enter bugs at http://blackfin.uclinux.org/
|
||
|
*
|
||
|
* Licensed under the GPL-2 or later.
|
||
|
*/
|
||
|
|
||
|
#include <asm/blackfin.h>
|
||
|
|
||
|
/* Invalidate the Entire Data cache by
|
||
|
* clearing DMC[1:0] bits
|
||
|
*/
|
||
|
void blackfin_invalidate_entire_dcache(void)
|
||
|
{
|
||
|
u32 dmem = bfin_read_DMEM_CONTROL();
|
||
|
SSYNC();
|
||
|
bfin_write_DMEM_CONTROL(dmem & ~0xc);
|
||
|
SSYNC();
|
||
|
bfin_write_DMEM_CONTROL(dmem);
|
||
|
SSYNC();
|
||
|
}
|