Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 252a9aff authored by James Bottomley's avatar James Bottomley Committed by James Bottomley
Browse files

arm: add mm API for DMA to vmalloc/vmap areas



ARM cannot prevent cache movein, so this patch implements both the
flush and invalidate pieces of the API.

Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent ef7cc35b
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -432,6 +432,16 @@ static inline void __flush_icache_all(void)
	    : "r" (0));
	    : "r" (0));
#endif
#endif
}
}
static inline void flush_kernel_vmap_range(void *addr, int size)
{
	if ((cache_is_vivt() || cache_is_vipt_aliasing()))
	  __cpuc_flush_dcache_area(addr, (size_t)size);
}
static inline void invalidate_kernel_vmap_range(void *addr, int size)
{
	if ((cache_is_vivt() || cache_is_vipt_aliasing()))
	  __cpuc_flush_dcache_area(addr, (size_t)size);
}


#define ARCH_HAS_FLUSH_ANON_PAGE
#define ARCH_HAS_FLUSH_ANON_PAGE
static inline void flush_anon_page(struct vm_area_struct *vma,
static inline void flush_anon_page(struct vm_area_struct *vma,