[OpenBIOS] [PATCH] Don't try to start Quik from hard disk ifbooting from theCD-ROM

laurent at lvivier.info laurent at lvivier.info
Tue Jan 13 13:14:37 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;	
>+

Could you put this outside of the quik_startup() function ?
I'd like to have only quik code inside (no nvram access).

Regards,
Laurent



More information about the OpenBIOS mailing list