[openfirmware] r1088 - cpu/x86/pc/olpc
svn at openfirmware.info
svn at openfirmware.info
Wed Jan 28 18:20:10 CET 2009
Author: wmb
Date: 2009-01-28 18:20:10 +0100 (Wed, 28 Jan 2009)
New Revision: 1088
Modified:
cpu/x86/pc/olpc/iflash.fth
Log:
OLPC - Added some code to iflash.fth to clear out junk in the
manufacturing data area after Inysde BIOS has polluted it.
Not part of the main OLPC build.
Modified: cpu/x86/pc/olpc/iflash.fth
===================================================================
--- cpu/x86/pc/olpc/iflash.fth 2009-01-28 17:09:50 UTC (rev 1087)
+++ cpu/x86/pc/olpc/iflash.fth 2009-01-28 17:20:10 UTC (rev 1088)
@@ -22,6 +22,15 @@
/mfg-data-merge move
;
+\ unpollute-mfg-data clears the Insyde BIOS residue from the beginning
+\ of the manufacturing data area, restoring it to erased state
+: unpollute-mfg-data ( -- )
+ rom-pa mfg-data-offset + l@ -1 <> abort" Mfg data area is not polluted"
+ get-mfg-data
+ mfg-data-buf mfg-data-merge-offset h# ff fill
+ put-mfg-data
+;
+
: get-insyde ( ["filename"] -- )
parse-word ( adr len )
dup 0= if 2drop " u:\insyde.rom" then ( adr len )
More information about the openfirmware
mailing list