[brcm-2.4] fix typo in switch config migration script
[openwrt.git] / target / linux / generic-2.6 / image / lzma-loader / src / decompress.c
index 4ed432d..45ac509 100644 (file)
@@ -96,7 +96,10 @@ static __inline__ unsigned char get_byte(void)
        return read_byte(0, &buffer, &fake), *buffer;
 }
 
        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[];
 
 extern char lzma_start[];
 extern char lzma_end[];
 
This page took 0.019638 seconds and 4 git commands to generate.