Skip to content

Commit

Permalink
[POWERPC] Use lowmem_end_addr to limit lmb allocations on ppc32
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kumar Gala authored and Paul Mackerras committed Apr 16, 2008
1 parent 0aef996 commit edc164d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-powerpc/lmb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit edc164d

Please sign in to comment.