bcm: don't call nil on PADDR() in dmaaddr(), return busdram dummy address

front
cinap_lenrek 2019-05-03 22:53:09 +02:00
parent eb4bd4aa3e
commit 1a7c224b3e
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ static u32int *dmaregs = (u32int*)DMAREGS;
uintptr
dmaaddr(void *va)
{
if(va == nil)
return soc.busdram;
return soc.busdram | (PADDR(va) - PHYSDRAM);
}