summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/image/lzma-loader/src/decompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic-2.6/image/lzma-loader/src/decompress.c')
-rw-r--r--target/linux/generic-2.6/image/lzma-loader/src/decompress.c5
1 files changed, 4 insertions, 1 deletions
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 4ed432d..45ac509 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[];