diff options
Diffstat (limited to 'arch/mips/lib/shutdown.c')
-rw-r--r-- | arch/mips/lib/shutdown.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/lib/shutdown.c b/arch/mips/lib/shutdown.c new file mode 100644 index 0000000000..973cd23c71 --- /dev/null +++ b/arch/mips/lib/shutdown.c @@ -0,0 +1,12 @@ +/** + * This function is called by shutdown_barebox to get a clean + * memory/cache state. + */ +#include <init.h> +#include <asm/cache.h> + +static void arch_shutdown(void) +{ + flush_cache_all(); +} +archshutdown_exitcall(arch_shutdown); |