[openfirmware] r1348 - cpu/x86/pc/olpc/via

svn at openfirmware.info svn at openfirmware.info
Sat Sep 5 11:03:28 CEST 2009


Author: wmb
Date: 2009-09-05 11:03:28 +0200 (Sat, 05 Sep 2009)
New Revision: 1348

Modified:
   cpu/x86/pc/olpc/via/boardrev.fth
Log:
Via - cache the board ID value in CMOS as the raw EC code, not the
derived ID, thus making the assembly language startup code easier.


Modified: cpu/x86/pc/olpc/via/boardrev.fth
===================================================================
--- cpu/x86/pc/olpc/via/boardrev.fth	2009-09-05 09:02:27 UTC (rev 1347)
+++ cpu/x86/pc/olpc/via/boardrev.fth	2009-09-05 09:03:28 UTC (rev 1348)
@@ -27,23 +27,13 @@
 : stand-init-io
    stand-init-io
 
-[ifndef] notdef
-   ['] board-id@ catch  if  0  then   case
-      0      of  0       endof  \ EC broken
-      ( board-id )  dup h# 10 * 8 +  swap  \ E.g. b3 -> b38
-   endcase
-[else]
-   \ wait-ib-empty
-   \ autowack-off
-   0 h# 68 pc!
-   h# d08
-[then]
+   ['] board-id@ catch  if  0  then
 
-   to board-revision
-
    \ Cache the board revision in CMOS RAM so the early startup code
    \ can get it without having to wait for the EC.
-   board-revision dup h# 82 cmos!  invert h# 83 cmos!
+   dup   dup h# 82 cmos!  invert h# 83 cmos!       ( id )
+
+   dup  if  h# 10 * 8 +  then   to board-revision
 ;
 warning !
 




More information about the openfirmware mailing list