X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9e0a57b449c8575004476f06b8435648fcf44a26..8ea05ffd2b12394f22ffba544e8e9c81891e3bef:/target/linux/generic-2.6/image/lzma-loader/src/decompress.c 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[];