<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br>On Mon, Aug 1, 2011 at 2:11 AM, Programmingkid<br><<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>> wrote:<br><blockquote type="cite">Is there a way to make OpenBIOS not use so much CPU time when running in QEMU? My laptop becomes very hot when I do anything in OpenBIOS.<br></blockquote><br>I've noticed that too. The input device (keyboard/serial) is scanned<br>in a tight busy loop. With some effort, this could be changed to<br>interrupt driven.<br></span></blockquote><div><br></div><div>I was thinking the exact same thing.</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">But the same thing happens also when lots of Forth is executed, maybe<br>the Forth interpreter and QEMU code fits in the CPU cache nicely and<br>this then maximizes CPU throughput and power consumption.</span></blockquote></div><br><div>Maybe we should give the user the option to reduce cpu usage. A compile-time or runtime option might do. My idea is set the interrupt controller to run code that makes the currently running code sleep for 10 milliseconds. That would take care of both problems. We would finally have computers that don't feel like space heaters after doing some Forth programming on them.</div></div></body></html>