3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
10 * SPDX-License-Identifier: GPL-2.0+
19 #include <asm/system.h>
22 DECLARE_GLOBAL_DATA_PTR;
25 static void cache_flush(void);
27 int cleanup_before_linux (void)
30 * this function is called just before we call linux
31 * it prepares the processor for linux
33 * just disable everything that can disturb booting linux
36 disable_interrupts ();
38 /* turn off I-cache */
49 static void cache_flush (void)
53 asm ("mcr p15, 0, %0, c7, c5, 0": :"r" (i));