shithub: riscv

Download patch

ref: e6d22570a84ce1e158f184a8a90cfd53be48bbf4
parent: aca0293f0b3aaf58fa30a2bcdf70c750b6b316f1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 21 22:54:06 EDT 2019

bcm: invalidate cache on Fbinfo after firmware completion

--- a/sys/src/9/bcm/vcore.c
+++ b/sys/src/9/bcm/vcore.c
@@ -220,7 +220,8 @@
 	cachedwbinvse(fi, sizeof(*fi));
 	vcwrite(ChanFb, dmaaddr(fi));
 	if(vcread(ChanFb) != 0)
-		return 0;
+		return nil;
+	cachedinvse(fi, sizeof(*fi));
 	va = mmukmap(FRAMEBUFFER, (fi->base&~0xC0000000)|PHYSDRAM, fi->screensize);
 	if(va)
 		memset((char*)va, 0x7F, fi->screensize);