bcm: don't use PADDR() to convert bus address to physical in vcore

This commit is contained in:
cinap_lenrek 2019-04-11 17:12:20 +02:00
parent 9ae99fb5ad
commit 6aff58df75

View file

@ -211,7 +211,7 @@ fbinit(int set, int *width, int *height, int *depth)
vcwrite(ChanFb, dmaaddr(fi));
if(vcread(ChanFb) != 0)
return 0;
va = mmukmap(FRAMEBUFFER, PADDR(fi->base), fi->screensize);
va = mmukmap(FRAMEBUFFER, (fi->base&~0xC0000000)|PHYSDRAM, fi->screensize);
if(va)
memset((char*)va, 0x7F, fi->screensize);
return (void*)va;