2013-12-09 13:24:56 +00:00
|
|
|
#ifndef GRUB_MACHINE_EMU
|
|
|
|
#error "This source is only meant for grub-emu platform"
|
|
|
|
#endif
|
2011-01-01 14:53:31 +00:00
|
|
|
|
|
|
|
#include <grub/cache.h>
|
|
|
|
|
2013-12-09 13:24:56 +00:00
|
|
|
#if defined(__ia64__)
|
|
|
|
#include "../ia64/cache.c"
|
|
|
|
#elif defined (__arm__) || defined (__aarch64__)
|
2013-12-08 16:49:02 +00:00
|
|
|
|
2015-02-26 21:20:59 +00:00
|
|
|
void __clear_cache (void *beg, void *end);
|
2011-01-01 14:53:31 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
grub_arch_sync_caches (void *address, grub_size_t len)
|
|
|
|
{
|
|
|
|
__clear_cache (address, (char *) address + len);
|
|
|
|
}
|
2013-12-08 16:49:02 +00:00
|
|
|
|
|
|
|
#elif defined (__mips__)
|
|
|
|
void _flush_cache (void *address, grub_size_t len, int type);
|
|
|
|
|
|
|
|
void
|
|
|
|
grub_arch_sync_caches (void *address, grub_size_t len)
|
|
|
|
{
|
|
|
|
return _flush_cache (address, len, 0);
|
|
|
|
}
|
|
|
|
|
2019-02-12 10:31:07 +00:00
|
|
|
#elif defined(__riscv)
|
|
|
|
void
|
|
|
|
grub_arch_sync_caches (void *address, grub_size_t len)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-01-02 13:09:58 +00:00
|
|
|
#endif
|
|
|
|
|