]> git.baikalelectronics.ru Git - kernel.git/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)
commiteaf7c51148b621a2c2f2f57c495177e1ffb7f44d
tree339d273aee5eb2cb83e226945f0319b51f4bdf3c
parent763cff2ff979f778b4d227dd662a7ff682cdc53e
[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