diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-03-19 03:05:10 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-03-19 03:05:10 -0400 |
commit | b4b7a4ef097f288f724420b473dbf92a89c0ab7e (patch) | |
tree | 23ad8101e3e77c32a8d1e1b95a9c1cd7f7a475b7 /include/linux/decompress | |
parent | e9ce335df51ff782035a15c261a3c0c9892a1767 (diff) | |
parent | a3d3203e4bb40f253b1541e310dc0f9305be7c84 (diff) |
Merge branch 'master' into for-linus
Conflicts:
block/Kconfig
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/decompress')
-rw-r--r-- | include/linux/decompress/mm.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/decompress/mm.h b/include/linux/decompress/mm.h index 5032b9a31ae7..ad5ec1d0475e 100644 --- a/include/linux/decompress/mm.h +++ b/include/linux/decompress/mm.h | |||
@@ -14,11 +14,21 @@ | |||
14 | 14 | ||
15 | /* Code active when included from pre-boot environment: */ | 15 | /* Code active when included from pre-boot environment: */ |
16 | 16 | ||
17 | /* | ||
18 | * Some architectures want to ensure there is no local data in their | ||
19 | * pre-boot environment, so that data can arbitarily relocated (via | ||
20 | * GOT references). This is achieved by defining STATIC_RW_DATA to | ||
21 | * be null. | ||
22 | */ | ||
23 | #ifndef STATIC_RW_DATA | ||
24 | #define STATIC_RW_DATA static | ||
25 | #endif | ||
26 | |||
17 | /* A trivial malloc implementation, adapted from | 27 | /* A trivial malloc implementation, adapted from |
18 | * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 | 28 | * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 |
19 | */ | 29 | */ |
20 | static unsigned long malloc_ptr; | 30 | STATIC_RW_DATA unsigned long malloc_ptr; |
21 | static int malloc_count; | 31 | STATIC_RW_DATA int malloc_count; |
22 | 32 | ||
23 | static void *malloc(int size) | 33 | static void *malloc(int size) |
24 | { | 34 | { |