提交 bfcd2ea6 编写于 作者: N Nicolas Pitre 提交者: Nicolas Pitre

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: NNicolas Pitre <nicolas.pitre@linaro.org>
上级 7146182c
...@@ -1614,7 +1614,7 @@ DMA_MemType_t dma_mem_type(void *addr) ...@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册