Don't try to start Quik from hard disk if booting from the CD-ROM

(Aurelien Jarno)


git-svn-id: svn://coreboot.org/openbios/openbios-devel@405 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2009-01-13 20:07:43 +00:00
parent f9a9554ba5
commit b599634ceb

View File

@@ -393,8 +393,13 @@ static void check_preloaded_kernel(void)
void
boot( void )
{
char boot_device = nvram_read(0x34);
fword("update-chosen");
check_preloaded_kernel();
quik_startup();
if (boot_device == 'm') {
check_preloaded_kernel();
}
if (boot_device == 'c') {
quik_startup();
}
yaboot_startup();
}