aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-04-15 15:52:24 -0400
committerPaul Mackerras <paulus@samba.org>2008-04-16 17:46:13 -0400
commitedc164d18f6b86b6de134d432de286e6c440c66d (patch)
tree0036369aba26d8d6dee9851fa6785df26dfde220 /include/asm-powerpc
parent0aef996b37d08757562ecf0bb0c1f6998e634c8b (diff)
[POWERPC] Use lowmem_end_addr to limit lmb allocations on ppc32
Now that we have a proper variable that is the address of the top of low memory we can use it to limit the lmb allocations. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/lmb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-powerpc/lmb.h b/include/asm-powerpc/lmb.h
index 028184b6a162..6f5fdf0a19ae 100644
--- a/include/asm-powerpc/lmb.h
+++ b/include/asm-powerpc/lmb.h
@@ -6,8 +6,8 @@
6#define LMB_DBG(fmt...) udbg_printf(fmt) 6#define LMB_DBG(fmt...) udbg_printf(fmt)
7 7
8#ifdef CONFIG_PPC32 8#ifdef CONFIG_PPC32
9extern unsigned long __max_low_memory; 9extern phys_addr_t lowmem_end_addr;
10#define LMB_REAL_LIMIT __max_low_memory 10#define LMB_REAL_LIMIT lowmem_end_addr
11#else 11#else
12#define LMB_REAL_LIMIT 0 12#define LMB_REAL_LIMIT 0
13#endif 13#endif