Commit 13edad7a authored by David S. Miller's avatar David S. Miller

[SPARC64]: Rewrite convoluted physical memory probing.

Delete all of the code working with sp_banks[] and replace
with clean acquisition and sorting of physical memory
parameters from the firmware.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ed3ffaf7
...@@ -1333,7 +1333,7 @@ static int cheetah_check_main_memory(unsigned long paddr) ...@@ -1333,7 +1333,7 @@ static int cheetah_check_main_memory(unsigned long paddr)
{ {
unsigned long vaddr = PAGE_OFFSET + paddr; unsigned long vaddr = PAGE_OFFSET + paddr;
if (vaddr > high_memory) if (vaddr > (unsigned long) high_memory)
return 0; return 0;
return kern_addr_valid(vaddr); return kern_addr_valid(vaddr);
......
This diff is collapsed.
...@@ -186,8 +186,8 @@ struct linux_prom_registers { ...@@ -186,8 +186,8 @@ struct linux_prom_registers {
}; };
struct linux_prom64_registers { struct linux_prom64_registers {
long phys_addr; unsigned long phys_addr;
long reg_size; unsigned long reg_size;
}; };
struct linux_prom_irqs { struct linux_prom_irqs {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment