aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorYinghai Lu <yinghailu@gmail.com>2006-10-04 20:46:15 +0000
committerYinghai Lu <yinghailu@gmail.com>2006-10-04 20:46:15 +0000
commitd4b278c02c1da92219ebeb34204b9768934aeca3 (patch)
tree488d097cac9744cfc9b8ff7c89ce69bcb21370cb /src/lib
parent2e3757d11c565a8fe68dc2a2c34975e98304533c (diff)
AMD Rev F support
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2435 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/nrv2b.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/nrv2b.c b/src/lib/nrv2b.c
index db92ceb154..c91eda5047 100644
--- a/src/lib/nrv2b.c
+++ b/src/lib/nrv2b.c
@@ -28,18 +28,13 @@
#if ENDIAN == 0 && BITSIZE == 32
#define GETBIT(bb, src, ilen) GETBIT_LE32(bb, src, ilen)
#endif
-
-static unsigned long unrv2b(uint8_t * src, uint8_t * dst)
+static unsigned long unrv2b(uint8_t * src, uint8_t * dst, unsigned long *ilen_p)
{
unsigned long ilen = 0, olen = 0, last_m_off = 1;
uint32_t bb = 0;
unsigned bc = 0;
const uint8_t *m_pos;
-// unsigned long file_len = *(unsigned long *) src;
- // we only have printk_debug in copy_and_run.c if CONFIG_USE_INIT is
- // not set, so comment it out.
- // 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 */
@@ -81,9 +76,8 @@ static unsigned long unrv2b(uint8_t * src, uint8_t * dst)
} while (--m_len > 0);
}
- // we only have printk_debug in copy_and_run.c if CONFIG_USE_INIT is
- // not set, so comment it out.
- //printk_debug("computed len is %d, file len is %d\n", olen, file_len);
+ *ilen_p = ilen;
+
return olen;
}