Changeset 3667


Ignore:
Timestamp:
Jun 5, 2013, 4:32:41 AM (14 months ago)
Author:
quozl
Message:

OLPC - check for a NUL before removing it from the SN tag search result, because otherwise an SN tag with zero length may prevent normal boot. #12695

Location:
cpu
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/build-fw.fth

    r3652 r3667  
    349349      board-revision " board-revision-int" integer-property 
    350350      compatible$  " compatible" string-property 
    351  
    352       \ The "1-" removes the null byte 
    353       " SN" find-tag  if  1-  else  " Unknown"  then  " serial-number" string-property 
     351      " SN" find-tag  if  ?-null  else  " Unknown"  then  " serial-number" string-property 
    354352 
    355353      ec-api-ver@ " ec-version" integer-property 
  • cpu/x86/pc/olpc/devices.fth

    r2866 r3667  
    355355      " OLPC " encode-bytes  2swap encode-string  encode+  " banner-name" property 
    356356      board-revision " board-revision-int" integer-property 
    357       \ The "1-" removes the null byte 
    358       " SN" find-tag  if  1-  else  " Unknown"  then  " serial-number" string-property 
     357      " SN" find-tag  if  ?-null  else  " Unknown"  then  " serial-number" string-property 
    359358      8 ec-cmd-b@ dup " ec-version" integer-property 
    360359 
  • cpu/x86/pc/olpc/via/devices.fth

    r2812 r3667  
    323323      " OLPC " encode-bytes  2swap encode-string  encode+  " banner-name" property 
    324324      board-revision " board-revision-int" integer-property 
    325       \ The "1-" removes the null byte 
    326       " SN" find-tag  if  1-  else  " Unknown"  then  " serial-number" string-property 
     325      " SN" find-tag  if  ?-null  else  " Unknown"  then  " serial-number" string-property 
    327326      8 ec-cmd-b@ dup " ec-version" integer-property 
    328327 
Note: See TracChangeset for help on using the changeset viewer.