Author: quozl Date: Fri Apr 13 07:01:36 2012 New Revision: 2943 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2943
Log: disklabel - file spec parsing, avoid treating a-h as partition letter if UFS partition support is disabled.
Modified: ofw/disklabel/methods.fth
Modified: ofw/disklabel/methods.fth ============================================================================== --- ofw/disklabel/methods.fth Fri Apr 13 01:28:34 2012 (r2942) +++ ofw/disklabel/methods.fth Fri Apr 13 07:01:36 2012 (r2943) @@ -200,12 +200,14 @@ dup 0= if exit then ( adr len ) then
+[ifdef] ufs-support \ 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 exit then ( adr len ) then ( adr len ) +[then] ; : parse-partition ( -- ) null$ to filename null$ to partition-name$ -1 to #part 0 to ufs-partition
openfirmware@openfirmware.info