Browse Source

ARM: Add final piece to fix XIP decompressor in read-only memory

This defines STATIC_RW_DATA, which prevents the read/write malloc
management data being declared with a static attribute.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 15 years ago
parent
commit
b89ebadc34
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/arm/boot/compressed/decompress.c

+ 1 - 0
arch/arm/boot/compressed/decompress.c

@@ -11,6 +11,7 @@ extern unsigned long free_mem_end_ptr;
 extern void error(char *);
 
 #define STATIC static
+#define STATIC_RW_DATA	/* non-static please */
 
 #define ARCH_HAS_DECOMP_WDOG