diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/powerpc/mm/lmb.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/powerpc/mm/lmb.c')
| -rw-r--r-- | arch/powerpc/mm/lmb.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/mm/lmb.c b/arch/powerpc/mm/lmb.c index bbe3eac918e8..417d58518558 100644 --- a/arch/powerpc/mm/lmb.c +++ b/arch/powerpc/mm/lmb.c | |||
| @@ -31,6 +31,8 @@ | |||
| 31 | #define DBG(fmt...) | 31 | #define DBG(fmt...) |
| 32 | #endif | 32 | #endif |
| 33 | 33 | ||
| 34 | #define LMB_ALLOC_ANYWHERE 0 | ||
| 35 | |||
| 34 | struct lmb lmb; | 36 | struct lmb lmb; |
| 35 | 37 | ||
| 36 | void lmb_dump_all(void) | 38 | void lmb_dump_all(void) |
| @@ -226,6 +228,20 @@ unsigned long __init lmb_alloc(unsigned long size, unsigned long align) | |||
| 226 | unsigned long __init lmb_alloc_base(unsigned long size, unsigned long align, | 228 | unsigned long __init lmb_alloc_base(unsigned long size, unsigned long align, |
| 227 | unsigned long max_addr) | 229 | unsigned long max_addr) |
| 228 | { | 230 | { |
| 231 | unsigned long alloc; | ||
| 232 | |||
| 233 | alloc = __lmb_alloc_base(size, align, max_addr); | ||
| 234 | |||
| 235 | if (alloc == 0) | ||
| 236 | panic("ERROR: Failed to allocate 0x%lx bytes below 0x%lx.\n", | ||
| 237 | size, max_addr); | ||
| 238 | |||
| 239 | return alloc; | ||
| 240 | } | ||
| 241 | |||
| 242 | unsigned long __init __lmb_alloc_base(unsigned long size, unsigned long align, | ||
| 243 | unsigned long max_addr) | ||
| 244 | { | ||
| 229 | long i, j; | 245 | long i, j; |
| 230 | unsigned long base = 0; | 246 | unsigned long base = 0; |
| 231 | 247 | ||
