1 // SPDX-License-Identifier: GPL-2.0+
4 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
5 * Marius Groeger <mgroeger@sysgo.de>
8 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
17 #include <asm/system.h>
19 static void cache_flush(void);
21 int cleanup_before_linux (void)
24 * this function is called just before we call linux
25 * it prepares the processor for linux
27 * we turn off caches etc ...
30 disable_interrupts ();
32 /* turn off I/D-cache */
42 static void cache_flush (void)
46 asm ("mcr p15, 0, %0, c7, c7, 0": :"r" (i));