bcm: don't use PADDR() to convert bus address to physical in vcore
This commit is contained in:
parent
9ae99fb5ad
commit
6aff58df75
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ fbinit(int set, int *width, int *height, int *depth)
|
||||||
vcwrite(ChanFb, dmaaddr(fi));
|
vcwrite(ChanFb, dmaaddr(fi));
|
||||||
if(vcread(ChanFb) != 0)
|
if(vcread(ChanFb) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
va = mmukmap(FRAMEBUFFER, PADDR(fi->base), fi->screensize);
|
va = mmukmap(FRAMEBUFFER, (fi->base&~0xC0000000)|PHYSDRAM, fi->screensize);
|
||||||
if(va)
|
if(va)
|
||||||
memset((char*)va, 0x7F, fi->screensize);
|
memset((char*)va, 0x7F, fi->screensize);
|
||||||
return (void*)va;
|
return (void*)va;
|
||||||
|
|
Loading…
Reference in a new issue