2010-05-06 06:08:35 +00:00
|
|
|
#ifndef GRUB_MACHINE_EMU
|
|
|
|
#error "This source is only meant for grub-emu platform"
|
|
|
|
#endif
|
|
|
|
|
2010-06-02 08:21:05 +00:00
|
|
|
#if defined(__i386__) || defined(__x86_64__)
|
2010-05-06 06:08:35 +00:00
|
|
|
/* Nothing is necessary. */
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__sparc__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../sparc64/cache.S"
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__mips__)
|
2010-09-11 14:58:06 +00:00
|
|
|
/* On MIPS we must go through standard functions. */
|
|
|
|
#include <grub/symbol.h>
|
|
|
|
|
|
|
|
FUNCTION (grub_cpu_flush_cache)
|
|
|
|
FUNCTION (grub_arch_sync_caches)
|
|
|
|
.set nomacro
|
|
|
|
.set noreorder
|
|
|
|
lui $t0, %hi(_flush_cache)
|
|
|
|
addui $t0, $t0, %lo(_flush_cache)
|
|
|
|
move $a3, $zero
|
|
|
|
jr $t0
|
|
|
|
nop
|
|
|
|
.set reorder
|
|
|
|
.set macro
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__powerpc__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../powerpc/cache.S"
|
|
|
|
#else
|
|
|
|
#error "No target cpu type is defined"
|
|
|
|
#endif
|