Author: laurent Date: 2009-08-08 23:56:26 +0200 (Sat, 08 Aug 2009) New Revision: 541
Modified: trunk/openbios-devel/arch/ppc/qemu/main.c Log: quik_startup() uses now encode_bootpath() instead of calling find_dev()/set_property().
Modified: trunk/openbios-devel/arch/ppc/qemu/main.c =================================================================== --- trunk/openbios-devel/arch/ppc/qemu/main.c 2009-08-08 14:40:36 UTC (rev 540) +++ trunk/openbios-devel/arch/ppc/qemu/main.c 2009-08-08 21:56:26 UTC (rev 541) @@ -346,7 +346,6 @@ struct first_info fi; } fi; } u; - phandle_t ph;
if ((fd = open_io(path)) == -1) { ELF_DPRINTF("Can't open %s\n", path); @@ -367,10 +366,7 @@ if (memcmp(u.fi.fi.quik_vers, "QUIK", 4)) return;
- ph = find_dev("/options"); - set_property(ph, "boot-device", path, strlen(path) + 1); - ph = find_dev("/chosen"); - set_property(ph, "bootargs", "Linux", 6); + encode_bootpath(path, "Linux");
if( ofmem_claim( QUIK_FIRST_BASEADDR, len, 0 ) == -1 ) fatal_error("Claim failed!\n");