mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
x86: Add basic cache operations
At present most x86 cache operations are undefined. Add a basic implementation for these. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5e98947f9b
commit
8937140957
1 changed files with 23 additions and 0 deletions
|
@ -228,3 +228,26 @@ void flush_dcache_range(unsigned long start, unsigned long stop)
|
|||
void invalidate_dcache_range(unsigned long start, unsigned long stop)
|
||||
{
|
||||
}
|
||||
|
||||
void dcache_enable(void)
|
||||
{
|
||||
enable_caches();
|
||||
}
|
||||
|
||||
void dcache_disable(void)
|
||||
{
|
||||
disable_caches();
|
||||
}
|
||||
|
||||
void icache_enable(void)
|
||||
{
|
||||
}
|
||||
|
||||
void icache_disable(void)
|
||||
{
|
||||
}
|
||||
|
||||
int icache_status(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue