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

Aurelien Jarno aurelien at aurel32.net
Tue Jan 13 12:25:25 CET 2009


Index: arch/ppc/qemu/main.c
===================================================================
--- arch/ppc/qemu/main.c	(révision 396)
+++ arch/ppc/qemu/main.c	(copie de travail)
@@ -266,6 +266,10 @@
 	} u;
 	phandle_t ph;
 
+	/* Quik can only boot from a hard-disk */
+	if (nvram_read(0x34) == 'd')
+		return;	
+
 	if ((fd = open_io(path)) == -1) {
 		ELF_DPRINTF("Can't open %s\n", path);
 		return;


-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



More information about the OpenBIOS mailing list