[POWERPC] Use PAGE_OFFSET to tell if an address is user/kernel in SW TLB handlers
authorKumar Gala <galak@kernel.crashing.org>
Thu, 11 Oct 2007 18:36:52 +0000 (13:36 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 11 Oct 2007 18:36:52 +0000 (13:36 -0500)
commit8a13c4f972e6c107d8cff54de647544c00e25b41
treebd1e291a935fe8420b270d0a4f8e9d3b7a8e1bd1
parentf5d7d13cd96313a90f8d13fa5d6e0704f6d534ba
[POWERPC] Use PAGE_OFFSET to tell if an address is user/kernel in SW TLB handlers

Move to using PAGE_OFFSET instead of TASK_SIZE or KERNELBASE value on
6xx/40x/44x/fsl-booke to determine if the faulting address is a kernel or
user space address.  This mimics how the macro is_kernel_addr() works.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/head_32.S
arch/powerpc/kernel/head_40x.S
arch/powerpc/kernel/head_44x.S
arch/powerpc/kernel/head_fsl_booke.S