[openfirmware] [commit] r3369 - cpu/x86/pc/olpc/via

repository service svn at openfirmware.info
Sat Oct 13 03:42:23 CEST 2012


Author: wmb
Date: Sat Oct 13 03:42:23 2012
New Revision: 3369
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3369

Log:
OLPC - fixed a possible unitialized buffer address in fs-update.

Modified:
   cpu/x86/pc/olpc/via/fsupdate.fth

Modified: cpu/x86/pc/olpc/via/fsupdate.fth
==============================================================================
--- cpu/x86/pc/olpc/via/fsupdate.fth	Sat Oct 13 03:41:13 2012	(r3368)
+++ cpu/x86/pc/olpc/via/fsupdate.fth	Sat Oct 13 03:42:23 2012	(r3369)
@@ -72,6 +72,7 @@
 also nand-commands definitions
 
 : zblocks:  ( "eblock-size" "#eblocks" ... -- )
+   load-base to data-buffer
    ?compare-spec-line
    get-hex# to /nand-block
    get-hex# to #image-eblocks
@@ -84,8 +85,7 @@
    \ Separate the two buffers by enough space for both the compressed
    \ and uncompressed copies of the data.  4x is overkill, but there
    \ is plenty of space at load-base
-   load-base to dma-buffer
-   load-base /nand-block 4 * + to data-buffer
+   load-base /nand-block 4 * + to dma-buffer
    /nand-block /nand-page / to nand-pages/block
    t-update  \ Handle possible timer rollover
 ;



More information about the openfirmware mailing list