j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Mon Dec 16 19:06:28 2013 New Revision: 1245 URL: http://tracker.coreboot.org/trac/openbios/changeset/1245
Log: sun-parts.c: only interpose ufs-file-system if an argument (filename) is specified
The code to interpose ufs-file-system similar to OBP would always interpose the package if it existed, causing Solaris ufsboot to fail when the package was subsequently opened on a raw disk device without a filename. Fix the code so that interposition only occurs when a filename is passed as an argument, which enables us to complete the load and start executing the Solaris 9 kernel on SPARC64.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/packages/sun-parts.c
Modified: trunk/openbios-devel/packages/sun-parts.c ============================================================================== --- trunk/openbios-devel/packages/sun-parts.c Mon Dec 16 19:06:24 2013 (r1244) +++ trunk/openbios-devel/packages/sun-parts.c Mon Dec 16 19:06:28 2013 (r1245) @@ -217,7 +217,7 @@ feval("find-package"); ph = POP_ph();
- if (argstr && ph) { + if (argstr && strlen(argstr) && ph) { ph = POP_ph(); push_str(argstr); PUSH_ph(ph);