diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-11-20 10:16:17 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-11-20 10:16:17 +0200 |
commit | 2d3ae3aa395e35372e717b60697fa7920add9341 (patch) | |
tree | c899461c5e6de0cab88589836d1e5e7879fe2028 /linux | |
parent | 4d5e69af1988ec17f76584a36347f8ef6f01d885 (diff) | |
download | xz-embedded-2d3ae3aa395e35372e717b60697fa7920add9341.tar.gz |
Use STATIC_RW_DATA for static read/write data.
This applies to xz_crc32_table. It's needed by the
pre-boot code on some architectures.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/lib/xz/xz_crc32.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linux/lib/xz/xz_crc32.c b/linux/lib/xz/xz_crc32.c index eb37d19..34532d1 100644 --- a/linux/lib/xz/xz_crc32.c +++ b/linux/lib/xz/xz_crc32.c @@ -17,7 +17,15 @@ #include "xz_private.h" -static uint32_t xz_crc32_table[256]; +/* + * STATIC_RW_DATA is used in the pre-boot environment on some architectures. + * See <linux/decompress/mm.h> for details. + */ +#ifndef STATIC_RW_DATA +# define STATIC_RW_DATA static +#endif + +STATIC_RW_DATA uint32_t xz_crc32_table[256]; XZ_EXTERN void xz_crc32_init(void) { |