2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-12-14 03:47:35 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2013
|
|
|
|
* David Feng <fenghua@phytium.com.cn>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm-offsets.h>
|
|
|
|
#include <config.h>
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <asm/macro.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* void __asm_invalidate_tlb_all(void)
|
|
|
|
*
|
|
|
|
* invalidate all tlb entries.
|
2017-07-04 08:04:54 +00:00
|
|
|
*/
|
|
|
|
.pushsection .text.__asm_invalidate_tlb_all, "ax"
|
2013-12-14 03:47:35 +00:00
|
|
|
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)
|
2017-07-04 08:04:54 +00:00
|
|
|
.popsection
|