remove linux 2.4 specific build system code
[openwrt/openwrt.git] / target / linux / generic-2.6 / image / lzma-loader / src / decompress.c
index 4ed432d1a502a62883b9f141b26fd199f6b1f221..45ac509cdc49a46c196aab591889195ffa28cf96 100644 (file)
@@ -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[];