X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9e0a57b449c8575004476f06b8435648fcf44a26..14537ae0c65e537b20512d6bd6c55c81ee0a6ab6:/target/linux/generic-2.6/image/lzma-loader/src/decompress.c?ds=inline diff --git a/target/linux/generic-2.6/image/lzma-loader/src/decompress.c b/target/linux/generic-2.6/image/lzma-loader/src/decompress.c index 4ed432d1a..45ac509cd 100644 --- a/target/linux/generic-2.6/image/lzma-loader/src/decompress.c +++ b/target/linux/generic-2.6/image/lzma-loader/src/decompress.c @@ -96,7 +96,10 @@ static __inline__ unsigned char get_byte(void) return read_byte(0, &buffer, &fake), *buffer; } -static char *buffer = (char *)0x80C00000; +/* This puts lzma workspace 128k below RAM end. + * That should be enough for both lzma and stack + */ +static char *buffer = (char *)(RAMSTART + RAMSIZE - 0x00020000); extern char lzma_start[]; extern char lzma_end[];