Author: quozl Date: Tue Nov 22 04:11:39 2011 New Revision: 2699 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2699
Log: fix hang on " u:f" r/w create-file caused by stack imbalance after handling UFS partition letter
Modified: ofw/disklabel/methods.fth
Modified: ofw/disklabel/methods.fth ============================================================================== --- ofw/disklabel/methods.fth Mon Nov 21 23:40:32 2011 (r2698) +++ ofw/disklabel/methods.fth Tue Nov 22 04:11:39 2011 (r2699) @@ -197,14 +197,14 @@ over c@ ascii 0 ascii 9 between if ( adr len ) over c@ ascii 0 - to #part ( adr len ) 1 /string ( adr' len' ) - dup 0= if 2drop exit then ( adr len ) + dup 0= if exit then ( adr len ) then
\ If the first character is "a".."h", it's a UFS partition letter over c@ lcc ascii a ascii h between if ( adr len ) over c@ to ufs-partition ( adr len ) 1 /string ( adr' len' ) - dup 0= if 2drop exit then ( adr len ) + dup 0= if exit then ( adr len ) then ( adr len ) ; : parse-partition ( -- )
openfirmware@openfirmware.info