]> err.no Git - linux-2.6/commit
[POWERPC] Introduce lowmem_end_addr to distinguish from total_lowmem
authorKumar Gala <galak@kernel.crashing.org>
Tue, 15 Apr 2008 19:52:22 +0000 (05:52 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Apr 2008 21:46:13 +0000 (07:46 +1000)
commitd7917ba7051e3fd12ebe2d5a09b29fb3a2b38190
tree339d273aee5eb2cb83e226945f0319b51f4bdf3c
parent99c62dd773797b68f3b1ca6bb3274725d1852fa2
[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>
arch/powerpc/mm/44x_mmu.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/init_64.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/mmu_decl.h