summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx/vmx.c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-06-17 19:47:04 +0000
committeraiju <devnull@localhost>2017-06-17 19:47:04 +0000
commitcbcd9b1d718bb827432c944620fac09847c6abc0 (patch)
treeea9b4cc4fda34100b871662aa6401ef9c8855db1 /sys/src/cmd/vmx/vmx.c
parent31d14c316a73766057a02d57fd08d890a25d4783 (diff)
vmx: VESA support and other misc I/O improvements
Diffstat (limited to 'sys/src/cmd/vmx/vmx.c')
-rw-r--r--sys/src/cmd/vmx/vmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/vmx/vmx.c b/sys/src/cmd/vmx/vmx.c
index a4674bb40..6671d7946 100644
--- a/sys/src/cmd/vmx/vmx.c
+++ b/sys/src/cmd/vmx/vmx.c
@@ -331,7 +331,7 @@ launch(void)
s = rcflush(1);
if(ctl("go %s", s == nil ? "" : s) < 0)
- sysfatal("go: %r");
+ sysfatal("go %s: %r", s == nil ? "" : s);
getexit++;
}
@@ -414,6 +414,7 @@ runloop(void)
break;
case SLEEP:
pitadvance();
+ rtcadvance();
break;
case NOTIF:
notif.f(notif.arg);
@@ -486,7 +487,6 @@ threadmain(int argc, char **argv)
static int edevn;
static uvlong gmemsz = 64*1024*1024;
extern uintptr fbsz, fbaddr;
- extern int textmode;
int i;
quotefmtinstall();
@@ -534,7 +534,7 @@ threadmain(int argc, char **argv)
cmdlinev = argv + 1;
mkregion(0, gmemsz, REGMEM);
- if(fbsz != 0 && textmode == 0){
+ if(fbsz != 0){
if(fbaddr + fbsz < fbaddr) sysfatal("invalid fb address");
if(fbaddr + fbsz < gmemsz) sysfatal("framebuffer overlaps with physical memory");
mkregion(fbaddr, fbsz, REGFB);