summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv8/tlb.S
blob: f840b04df5084ce4f9ec23754604fdd6f2e1ab8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * (C) Copyright 2013
 * David Feng <fenghua@phytium.com.cn>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <asm-offsets.h>
#include <config.h>
#include <version.h>
#include <linux/linkage.h>
#include <asm/macro.h>

/*
 * void __asm_invalidate_tlb_all(void)
 *
 * invalidate all tlb entries.
 */
ENTRY(__asm_invalidate_tlb_all)
	switch_el x9, 3f, 2f, 1f
3:	tlbi	alle3
	dsb	sy
	isb
	b	0f
2:	tlbi	alle2
	dsb	sy
	isb
	b	0f
1:	tlbi	vmalle1
	dsb	sy
	isb
0:
	ret
ENDPROC(__asm_invalidate_tlb_all)
OpenPOWER on IntegriCloud