Add support for "fastboot" option found in bochs BIOS

Introduced in
http://svn.code.sf.net/p/bochs/code/trunk@13073 6c8e4198-a580-4521-a02f-c9ae86df1db9
This commit is contained in:
Rafael Gieschke 2017-12-09 11:53:00 +01:00 committed by copy
parent 6440f7f9bc
commit 6a8a680336
2 changed files with 4 additions and 0 deletions

View file

@ -118,6 +118,7 @@ function V86Starter(options)
settings.memory_size = options["memory_size"] || 64 * 1024 * 1024;
settings.vga_memory_size = options["vga_memory_size"] || 8 * 1024 * 1024;
settings.boot_order = options["boot_order"] || 0x213;
settings.fastboot = options["fastboot"] || false;
settings.fda = undefined;
settings.fdb = undefined;

View file

@ -992,6 +992,9 @@ CPU.prototype.fill_cmos = function(rtc, settings)
rtc.cmos_write(CMOS_EQUIPMENT_INFO, 0x2F);
rtc.cmos_write(CMOS_BIOS_SMP_COUNT, 0);
// Used by bochs BIOS to skip the boot menu delay.
if (settings.fastboot) rtc.cmos_write(0x3f, 0x01);
};
CPU.prototype.load_bios = function()