xref: /kvm-unit-tests/lib/arm64/asm/mmu.h (revision db328a24b7030e9dd7e3012f25096a9188722144)
1 #ifndef __ASMARM64_MMU_H_
2 #define __ASMARM64_MMU_H_
3 /*
4  * Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com>
5  *
6  * This work is licensed under the terms of the GNU LGPL, version 2.
7  */
8 #include <asm/pgtable.h>
9 #include <asm/barrier.h>
10 
11 #define PMD_SECT_UNCACHED	PMD_ATTRINDX(MT_DEVICE_nGnRE)
12 #define PTE_WBWA		PTE_ATTRINDX(MT_NORMAL)
13 
14 static inline void flush_tlb_all(void)
15 {
16 	dsb(ishst);
17 	asm("tlbi	vmalle1is");
18 	dsb(ish);
19 	isb();
20 }
21 
22 #include <asm/mmu-api.h>
23 
24 #endif /* __ASMARM64_MMU_H_ */
25