summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib/shutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lib/shutdown.c')
-rw-r--r--arch/mips/lib/shutdown.c12
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);