From 6a23ef917bfdb41415dc36be5cd8b8e8e64ddc23 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 27 Jan 2018 19:58:48 +0100 Subject: [PATCH] kernel: initialize cyclefreq for machno > 0 in guesscpuhz() --- sys/src/9/pc/i8253.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/src/9/pc/i8253.c b/sys/src/9/pc/i8253.c index 50fad7105..586f2387b 100644 --- a/sys/src/9/pc/i8253.c +++ b/sys/src/9/pc/i8253.c @@ -133,6 +133,7 @@ guesscpuhz(int aalcycles) if(m->machno != 0){ m->cpuhz = MACHP(0)->cpuhz; m->cpumhz = MACHP(0)->cpumhz; + m->cyclefreq = MACHP(0)->cyclefreq; m->loopconst = MACHP(0)->loopconst; return; }