changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: bcm: don't use PADDR() to convert bus address to physical in vcore

changeset 7158: 46cc885b933b
parent 7157: 01744491ac8f
child 7159: 66132ebbe687
author: cinap_lenrek@felloff.net
date: Thu, 11 Apr 2019 17:12:20 +0200
files: sys/src/9/bcm/vcore.c
description: bcm: don't use PADDR() to convert bus address to physical in vcore
     1.1--- a/sys/src/9/bcm/vcore.c
     1.2+++ b/sys/src/9/bcm/vcore.c
     1.3@@ -211,7 +211,7 @@ fbinit(int set, int *width, int *height,
     1.4 	vcwrite(ChanFb, dmaaddr(fi));
     1.5 	if(vcread(ChanFb) != 0)
     1.6 		return 0;
     1.7-	va = mmukmap(FRAMEBUFFER, PADDR(fi->base), fi->screensize);
     1.8+	va = mmukmap(FRAMEBUFFER, (fi->base&~0xC0000000)|PHYSDRAM, fi->screensize);
     1.9 	if(va)
    1.10 		memset((char*)va, 0x7F, fi->screensize);
    1.11 	return (void*)va;