shithub: riscv

Download patch

ref: 721160290f138f087d199ab79875eae3de5e61fc
parent: b0997d16c62d141e532b9a79993783531f6fc5ce
author: aiju <devnull@localhost>
date: Thu Aug 24 05:25:23 EDT 2017

vmx(1): VGA framebuffer should be normal memory

--- a/sys/src/cmd/vmx/vmx.c
+++ b/sys/src/cmd/vmx/vmx.c
@@ -651,7 +651,7 @@
 	
 	if(gmemsz < 1<<20) sysfatal("640 KB of RAM is not enough for everyone");
 	mkregion(0, 0xa0000, REGALLOC|REGFREE|REGRWX);
-	mkregion(0xa0000, 0xc0000, REGALLOC);
+	mkregion(0xa0000, 0xc0000, REGALLOC|REGRWX);
 	mkregion(0xc0000, 0x100000, REGALLOC|REGRES|REGRWX);
 	if(fbsz != 0 && fbaddr < gmemsz){
 		mkregion(0x100000, fbaddr, REGALLOC|REGFREE|REGRWX);