powerpc: Allow mem=x cmdline to work with 4G+
We're currently choking on mem=4g (and above) due to memory_limit being specified as an unsigned long. Make memory_limit phys_addr_t to fix this. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
31207dab7d
commit
49a8496525
@@ -212,7 +212,7 @@ extern struct task_struct *_switch(struct thread_struct *prev,
|
||||
extern unsigned int rtas_data;
|
||||
extern int mem_init_done; /* set on boot once kmalloc can be called */
|
||||
extern int init_bootmem_done; /* set on !NUMA once bootmem is available */
|
||||
extern unsigned long memory_limit;
|
||||
extern phys_addr_t memory_limit;
|
||||
extern unsigned long klimit;
|
||||
|
||||
extern void *alloc_maybe_bootmem(size_t size, gfp_t mask);
|
||||
|
Reference in New Issue
Block a user