From: Kumar Gala Date: Tue, 15 Apr 2008 19:52:24 +0000 (+1000) Subject: [POWERPC] Use lowmem_end_addr to limit lmb allocations on ppc32 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=edc164d18f6b86b6de134d432de286e6c440c66d;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Paul Mackerras --- 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 @@ #define LMB_DBG(fmt...) udbg_printf(fmt) #ifdef CONFIG_PPC32 -extern unsigned long __max_low_memory; -#define LMB_REAL_LIMIT __max_low_memory +extern phys_addr_t lowmem_end_addr; +#define LMB_REAL_LIMIT lowmem_end_addr #else #define LMB_REAL_LIMIT 0 #endif