blob: f13c18942f3de69e62ab3a48793be05a71e24e22 [file] [log] [blame]
Pragnesh Patel25269c02020-05-29 11:33:34 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
4 */
5
6#include <irq_func.h>
7#include <asm/cache.h>
8
9/*
10 * cleanup_before_linux() is called just before we call linux
11 * it prepares the processor for linux
12 *
13 * we disable interrupt and caches.
14 */
15int cleanup_before_linux(void)
16{
17 disable_interrupts();
18
19 cache_flush();
20
21 return 0;
22}