summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mmu_decl.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-04-15 21:52:22 +0200
committerPaul Mackerras <paulus@samba.org>2008-04-16 23:46:13 +0200
commitd7917ba7051e3fd12ebe2d5a09b29fb3a2b38190 (patch)
tree339d273aee5eb2cb83e226945f0319b51f4bdf3c /arch/powerpc/mm/mmu_decl.h
parent[POWERPC] Remove and replace uses of PPC_MEMSTART with memstart_addr (diff)
downloadlinux-d7917ba7051e3fd12ebe2d5a09b29fb3a2b38190.tar.xz
linux-d7917ba7051e3fd12ebe2d5a09b29fb3a2b38190.zip
[POWERPC] Introduce lowmem_end_addr to distinguish from total_lowmem
total_lowmem represents the amount of low memory, not the physical address that low memory ends at. If the start of memory is at 0 it happens that total_lowmem can be used as both the size and the address that lowmem ends at (or more specifically one byte beyond the end). To make the code a bit more clear and deal with the case when the start of memory isn't at physical 0, we introduce lowmem_end_addr that represents one byte beyond the last physical address in the lowmem region. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/mmu_decl.h')
-rw-r--r--arch/powerpc/mm/mmu_decl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h
index 5bc11f5933a9..67477e772958 100644
--- a/arch/powerpc/mm/mmu_decl.h
+++ b/arch/powerpc/mm/mmu_decl.h
@@ -52,6 +52,7 @@ extern unsigned long __initial_memory_limit;
extern unsigned long total_memory;
extern unsigned long total_lowmem;
extern phys_addr_t memstart_addr;
+extern phys_addr_t lowmem_end_addr;
/* ...and now those things that may be slightly different between processor
* architectures. -- Dan