[OpenBIOS] [PATCH v2] Don't try to start Quik from hard disk if booting from the CD-ROM
Laurent Vivier
laurent at lvivier.info
Tue Jan 13 21:08:05 CET 2009
Le 13 janv. 09 à 17:35, Aurelien Jarno a écrit :
> On Tue, Jan 13, 2009 at 01:14:37PM +0100, laurent at lvivier.info wrote:
>>> 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).
>
> This is done in this new version.
Applied as r405, thanks.
Laurent
-------------------- laurent at lvivier.info --------------------
"Tout ce qui est impossible reste à accomplir" Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard
More information about the OpenBIOS
mailing list