quik_startup() uses now encode_bootpath() instead of calling

find_dev()/set_property().



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@541 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2009-08-08 21:56:26 +00:00
parent 9ae360c5da
commit bf92aa1fbf

View File

@@ -346,7 +346,6 @@ quik_startup( void )
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 @@ quik_startup( void )
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");