[openfirmware] r1026 - cpu/x86/pc/olpc

svn at openfirmware.info svn at openfirmware.info
Thu Dec 11 05:14:35 CET 2008


Author: rsmith
Date: 2008-12-11 05:14:34 +0100 (Thu, 11 Dec 2008)
New Revision: 1026

Modified:
   cpu/x86/pc/olpc/devices.fth
Log:
OLPC:
* Recognize both PQ2 and Ver: as ec version prefixes



Modified: cpu/x86/pc/olpc/devices.fth
===================================================================
--- cpu/x86/pc/olpc/devices.fth	2008-12-06 10:40:16 UTC (rev 1025)
+++ cpu/x86/pc/olpc/devices.fth	2008-12-11 04:14:34 UTC (rev 1026)
@@ -338,10 +338,12 @@
       board-revision " board-revision-int" integer-property
       \ The "1-" removes the null byte
       " SN" find-tag  if  1-  else  " Unknown"  then  " serial-number" string-property
+      8 ec-cmd-b@ dup " ec-version" integer-property
 
-      8 ec-cmd-b@  " ec-version" integer-property
+      \ EC code API 56 and greater changes the version numbering
+      h# 56 >= if " Ver:" else " PQ2" then
 
-      " PQ2" h# fff0.0000 h# 1.0000 sindex  dup 0>=  if  ( offset )
+      h# fff0.0000 h# 1.0000 sindex  dup 0>=  if         ( offset )
          h# fff0.0000 +  cscount                         ( name )
       else
          drop  " UNKNOWN"




More information about the openfirmware mailing list