j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
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
On Tue, Jan 13, 2009 at 01:14:37PM +0100, laurent@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.
Index: arch/ppc/qemu/main.c =================================================================== --- arch/ppc/qemu/main.c (révision 399) +++ arch/ppc/qemu/main.c (copie de travail) @@ -387,8 +393,13 @@ 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(); }
Le 13 janv. 09 à 17:35, Aurelien Jarno a écrit :
On Tue, Jan 13, 2009 at 01:14:37PM +0100, laurent@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@lvivier.info -------------------- "Tout ce qui est impossible reste à accomplir" Jules Verne "Things are only impossible until they're not" Jean-Luc Picard