summaryrefslogtreecommitdiff
path: root/src/lib/nrv2b.c
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-05-18 03:07:16 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-05-18 03:07:16 +0000
commitbad9d105cf908bbb032768a1605265654b38ca3a (patch)
tree264093bd7636f621345cc232d0dbbf2a003f9c56 /src/lib/nrv2b.c
parent5d573c28e7520085ff7b687c05834292d615860a (diff)
downloadcoreboot-bad9d105cf908bbb032768a1605265654b38ca3a.tar.xz
cleanup some of the compressed rom stream ugliness -- more to do!
olpc and rumba can now boot linux out of flash. vsa was resized to 64K. olpc and rumba now used compressed payload -- thanks stefan! git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2307 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib/nrv2b.c')
-rw-r--r--src/lib/nrv2b.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/nrv2b.c b/src/lib/nrv2b.c
index e9956cfcfa..1c0fa7f0a3 100644
--- a/src/lib/nrv2b.c
+++ b/src/lib/nrv2b.c
@@ -35,7 +35,9 @@ static unsigned long unrv2b(uint8_t * src, uint8_t * dst)
uint32_t bb = 0;
unsigned bc = 0;
const uint8_t *m_pos;
+ unsigned long file_len = *(unsigned long *) src;
+ printk_debug("compressed file len is supposed to be %d bytes\n", file_len);
// skip length
src += 4;
/* FIXME: check olen with the length stored in first 4 bytes */
@@ -77,6 +79,7 @@ static unsigned long unrv2b(uint8_t * src, uint8_t * dst)
} while (--m_len > 0);
}
+ printk_debug("computed len is %d, file len is %d\n", olen, file_len);
return olen;
}