1 #ifndef __ASMARM_MMU_H_ 2 #define __ASMARM_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 PTE_USER L_PTE_USER 12 #define PTE_SHARED L_PTE_SHARED 13 #define PTE_AF PTE_EXT_AF 14 #define PTE_WBWA L_PTE_MT_WRITEALLOC 15 16 static inline void local_flush_tlb_all(void) 17 { 18 asm volatile("mcr p15, 0, %0, c8, c7, 0" :: "r" (0)); 19 dsb(); 20 isb(); 21 } 22 23 static inline void flush_tlb_all(void) 24 { 25 //TODO 26 local_flush_tlb_all(); 27 } 28 29 #include <asm/mmu-api.h> 30 31 #endif /* __ASMARM_MMU_H_ */ 32