Author: wmb Date: Fri Oct 14 01:48:15 2011 New Revision: 2603 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2603
Log: OLPC XO-1 - trac #11336 - Fixed stack bug in ofw-model$ that caused auto-firmware-reflash failure.
Modified: cpu/x86/pc/olpc/banner.fth
Modified: cpu/x86/pc/olpc/banner.fth ============================================================================== --- cpu/x86/pc/olpc/banner.fth Thu Oct 13 06:52:37 2011 (r2602) +++ cpu/x86/pc/olpc/banner.fth Fri Oct 14 01:48:15 2011 (r2603) @@ -5,11 +5,11 @@
: ofw-model$ ( -- adr len ) " /openprom" find-package drop ( phandle ) - " model" rot get-package-property if - " ??? ????? ???" - else - decode-string - then + " model" rot get-package-property if ( ) + " ??? ????? ???" ( adr len ) + else ( adr len ) + decode-string 2nip ( adr len' ) + then ( adr len ) ; : ofw-version$ ( -- adr len ) ofw-model$ drop 6 + 7 -trailing