[OpenBIOS] [commit] r1245 - trunk/openbios-devel/packages

repository service svn at openbios.org
Mon Dec 16 19:06:29 CET 2013


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 at 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);



More information about the OpenBIOS mailing list