Author: quozl Date: Wed Sep 5 03:38:05 2012 New Revision: 3285 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3285
Log: OLPC - security, use signature-offset for locating version number in next firmware image, #12079
Modified: cpu/x86/pc/olpc/security.fth
Modified: cpu/x86/pc/olpc/security.fth ============================================================================== --- cpu/x86/pc/olpc/security.fth Wed Sep 5 02:59:42 2012 (r3284) +++ cpu/x86/pc/olpc/security.fth Wed Sep 5 03:38:05 2012 (r3285) @@ -889,7 +889,7 @@ pop-base ; : (fw-version) ( base-adr -- n ) - h# f.ffc7 + ((fw-version)) + signature-offset + 7 + ((fw-version)) ;
\ Returns an integer that is derived from a base-36 decoding @@ -901,7 +901,7 @@
: firmware-up-to-date? ( img$ -- flag ) /flash <> if show-x " Invalid Firmware image" .security-failure then ( adr ) - h# f.ffc7 + ((fw-version)) ( file-version# ) + (fw-version) ( file-version# ) ofw-version-int ( file-version# rom-version# ) u<= ;