changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: bcm: don't call nil on PADDR() in dmaaddr(), return busdram dummy address

changeset 7198: bee572b18071
parent 7197: babef06a3de5
child 7199: ba62683c0e2d
author: cinap_lenrek@felloff.net
date: Fri, 03 May 2019 22:53:09 +0200
files: sys/src/9/bcm/dma.c
description: bcm: don't call nil on PADDR() in dmaaddr(), return busdram dummy address
     1.1--- a/sys/src/9/bcm/dma.c
     1.2+++ b/sys/src/9/bcm/dma.c
     1.3@@ -100,6 +100,8 @@ static u32int *dmaregs = (u32int*)DMAREG
     1.4 uintptr
     1.5 dmaaddr(void *va)
     1.6 {
     1.7+	if(va == nil)
     1.8+		return soc.busdram;
     1.9 	return soc.busdram | (PADDR(va) - PHYSDRAM);
    1.10 }
    1.11