]> err.no Git - linux-2.6/commit
[PATCH] powerpc: Separate usage of KERNELBASE and PAGE_OFFSET
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 5 Dec 2005 16:24:33 +0000 (10:24 -0600)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:51:54 +0000 (14:51 +1100)
commitb5666f70395016a55cc9d57826508b8a346398d0
tree39d74718c2bc3f2fcba6456fdc39a6a0de3d78bd
parent51fae6de24da57bc6cdaa1b253595c3513ecbf2d
[PATCH] powerpc: Separate usage of KERNELBASE and PAGE_OFFSET

This patch separates usage of KERNELBASE and PAGE_OFFSET. I haven't
looked at any of the PPC32 code, if we ever want to support Kdump on
PPC we'll have to do another audit, ditto for iSeries.

This patch makes PAGE_OFFSET the constant, it'll always be 0xC * 1
gazillion for 64-bit.

To get a physical address from a virtual one you subtract PAGE_OFFSET,
_not_ KERNELBASE.

KERNELBASE is the virtual address of the start of the kernel, it's
often the same as PAGE_OFFSET, but _might not be_.

If you want to know something's offset from the start of the kernel
you should subtract KERNELBASE.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/btext.c
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/lparmap.c
arch/powerpc/kernel/machine_kexec_64.c
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/slb.c
arch/powerpc/mm/slb_low.S
arch/powerpc/mm/stab.c
include/asm-powerpc/page.h