diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-11 17:12:20 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-11 17:12:20 +0200 |
commit | 6aff58df7502dfb8b8ab9f981ec89fecd0d7e358 (patch) | |
tree | 142cd4340d1018fe36c910700ef9a09a90fdb75e /sys/src/9/bcm/vcore.c | |
parent | 9ae99fb5ad34f5b587129f5acddf77cbaa6fba17 (diff) |
bcm: don't use PADDR() to convert bus address to physical in vcore
Diffstat (limited to 'sys/src/9/bcm/vcore.c')
-rw-r--r-- | sys/src/9/bcm/vcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/bcm/vcore.c b/sys/src/9/bcm/vcore.c index 7c3f525e2..bc5b6a1b9 100644 --- a/sys/src/9/bcm/vcore.c +++ b/sys/src/9/bcm/vcore.c @@ -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; |