[OpenBIOS] [commit] r1254 - trunk/openbios-devel/libopenbios

repository service svn at openbios.org
Mon Jan 13 10:46:57 CET 2014


Author: mcayland
Date: Mon Jan 13 10:46:56 2014
New Revision: 1254
URL: http://tracker.coreboot.org/trac/openbios/changeset/1254

Log:
fcode_load.c: don't skip the FCode header when invoked via init-program

The FCode start address was set to bypass the FCode header rather than just
executing the first word which does this automatically (and may even one
day verify the payload contents/length).

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/libopenbios/fcode_load.c

Modified: trunk/openbios-devel/libopenbios/fcode_load.c
==============================================================================
--- trunk/openbios-devel/libopenbios/fcode_load.c	Mon Jan 13 10:46:53 2014	(r1253)
+++ trunk/openbios-devel/libopenbios/fcode_load.c	Mon Jan 13 10:46:56 2014	(r1254)
@@ -94,7 +94,6 @@
 {
 	/* If the payload is Fcode then we execute it immediately */
 	ucell address;
-	uint8_t fcode_header[8];
 
 	fword("load-base");
 	address = POP();
@@ -104,7 +103,7 @@
 		return;
 	}
 
-	PUSH(address + sizeof(fcode_header));
+	PUSH(address);
 	PUSH(1);
 	fword("byte-load");
 }



More information about the OpenBIOS mailing list