summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/cache_64.c
blob: 3a30296128d5e9bdf97a18ede2497d20980ef57d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-2.0-only

#include <common.h>
#include <init.h>
#include <asm/mmu.h>
#include <asm/cache.h>
#include <asm/system_info.h>

/*
 * Early function to flush the caches. This is for use when the
 * C environment is not yet fully initialized.
 */
void arm_early_mmu_cache_flush(void)
{
	v8_flush_dcache_all();
	v8_invalidate_icache_all();
}

void arm_early_mmu_cache_invalidate(void)
{
	v8_invalidate_dcache_all();
	v8_invalidate_icache_all();
}