// 32bit code to Power On Self Test (POST) a machine.
//
-// Copyright (C) 2008,2009 Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2002 MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "smbios.h" // smbios_init
#include "paravirt.h" // qemu_cfg_port_probe
#include "ps2port.h" // ps2port_setup
+#include "virtio-blk.h" // virtio_blk_setup
void
__set_irq(int vector, void *loc)
floppy_setup();
ata_setup();
ramdisk_setup();
+ virtio_blk_setup();
}
// Main setup code.
// Initialize internal tables
boot_setup();
drive_setup();
- cdemu_setup();
// Start hardware initialization (if optionrom threading)
if (CONFIG_THREADS && CONFIG_THREAD_OPTIONROMS)
boot_prep();
// Finalize data structures before boot
+ cdemu_setup();
pmm_finalize();
malloc_finalize();
memmap_finalize();
// Write protect bios memory.
make_bios_readonly();
+ // Disable bootsplash if something has hooked int19.
+ extern void entry_19_official(void);
+ if (GET_IVT(0x19).segoff
+ != SEGOFF(SEG_BIOS, (u32)entry_19_official - BUILD_BIOS_ADDR).segoff)
+ disable_bootsplash();
+
// Invoke int 19 to start boot process.
dprintf(3, "Jump to int19\n");
struct bregs br;