Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187308
b: refs/heads/master
c: 5ceaa2f
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Linus Torvalds committed Mar 12, 2010
1 parent ef12ffd commit bf035d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c1840f15feecb6961f480cad1a7a8e53a3f2ba6
refs/heads/master: 5ceaa2f39bfa73c4398cd01e78f1c3ebde3d3383
14 changes: 12 additions & 2 deletions trunk/include/linux/decompress/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,21 @@

/* Code active when included from pre-boot environment: */

/*
* Some architectures want to ensure there is no local data in their
* pre-boot environment, so that data can arbitarily relocated (via
* GOT references). This is achieved by defining STATIC_RW_DATA to
* be null.
*/
#ifndef STATIC_RW_DATA
#define STATIC_RW_DATA static
#endif

/* A trivial malloc implementation, adapted from
* malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
*/
static unsigned long malloc_ptr;
static int malloc_count;
STATIC_RW_DATA unsigned long malloc_ptr;
STATIC_RW_DATA int malloc_count;

static void *malloc(int size)
{
Expand Down

0 comments on commit bf035d9

Please sign in to comment.