powerpc: Rearrange SLB preload code
authorAnton Blanchard <anton@samba.org>
Mon, 13 Jul 2009 20:53:52 +0000 (20:53 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:12:25 +0000 (10:12 +1000)
commit5eb9bac0406f2beb84b21aac6feb89d33d9f3f5c
tree04b7dfa2acd16f308a161f6baab2a83e024951b1
parent30d0b3682887a81f0335b42f20116fd40d743371
powerpc: Rearrange SLB preload code

With the new top down layout it is likely that the pc and stack will be in the
same segment, because the pc is most likely in a library allocated via a top
down mmap. Right now we bail out early if these segments match.

Rearrange the SLB preload code to sanity check all SLB preload addresses
are not in the kernel, then check all addresses for conflicts.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/slb.c