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

Commit bfcd2ea6 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Nicolas Pitre
Browse files

ARM: mach-bcmring: use proper constant to identify DMA memory area



Using VMALLOC_END implies a presumption about the layout which is best
avoided, even if in practice this would not change much.

Signed-off-by: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
parent 7146182c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1614,7 +1614,7 @@ DMA_MemType_t dma_mem_type(void *addr)
{
{
	unsigned long addrVal = (unsigned long)addr;
	unsigned long addrVal = (unsigned long)addr;


	if (addrVal >= VMALLOC_END) {
	if (addrVal >= CONSISTENT_BASE) {
		/* NOTE: DMA virtual memory space starts at 0xFFxxxxxx */
		/* NOTE: DMA virtual memory space starts at 0xFFxxxxxx */


		/* dma_alloc_xxx pages are physically and virtually contiguous */
		/* dma_alloc_xxx pages are physically and virtually contiguous */