summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/traps.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2005-09-29 17:58:26 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-09-29 17:58:26 -0700
commit13edad7a5cef1c952459742482482a6b05e1a8a1 (patch)
tree4d1ddcbbb7fe5cda5e75c83e3d8511ed1642e201 /arch/sparc64/kernel/traps.c
parented3ffaf7b5e0262cb860f106a6632933671cc88f (diff)
downloadblackbird-op-linux-13edad7a5cef1c952459742482482a6b05e1a8a1.tar.gz
blackbird-op-linux-13edad7a5cef1c952459742482482a6b05e1a8a1.zip
[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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/traps.c')
-rw-r--r--arch/sparc64/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c
index 7f190fc57545..5570e7bb22bb 100644
--- a/arch/sparc64/kernel/traps.c
+++ b/arch/sparc64/kernel/traps.c
@@ -1333,7 +1333,7 @@ static int cheetah_check_main_memory(unsigned long paddr)
{
unsigned long vaddr = PAGE_OFFSET + paddr;
- if (vaddr > high_memory)
+ if (vaddr > (unsigned long) high_memory)
return 0;
return kern_addr_valid(vaddr);
OpenPOWER on IntegriCloud