[openfirmware] [commit] r2231 - cpu/x86/pc/biosload
repository service
svn at openfirmware.info
Thu May 26 11:46:47 CEST 2011
Author: wmb
Date: Thu May 26 11:46:46 2011
New Revision: 2231
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2231
Log:
BIOSload version - now that callbios no longer kills the IDTR value, install the alarm handler and use hlt when waiting at the prompt, thus greatly reducing virtual CPU usage under emulators.
Modified:
cpu/x86/pc/biosload/fw.bth
Modified: cpu/x86/pc/biosload/fw.bth
==============================================================================
--- cpu/x86/pc/biosload/fw.bth Thu May 26 11:39:28 2011 (r2230)
+++ cpu/x86/pc/biosload/fw.bth Thu May 26 11:46:46 2011 (r2231)
@@ -339,6 +339,11 @@
[then]
;
+\ This reduces processor use when waiting for a key. It helps
+\ a lot when running on an emulator.
+: c1-idle ( -- ) interrupts-enabled? if halt then ;
+' c1-idle to stdin-idle
+
: startup ( -- )
standalone? 0= if exit then
." calibrate-ms" cr
@@ -358,7 +363,8 @@
warning on
only forth also definitions
-\ install-alarm
+ ." Installing alarms" cr
+ install-alarm
#line off
More information about the openfirmware
mailing list