[POWERPC] Fix switch_slb handling of 1T ESID values
authorwill schmidt <will_schmidt@vnet.ibm.com>
Tue, 30 Oct 2007 18:59:33 +0000 (05:59 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 8 Nov 2007 03:15:31 +0000 (14:15 +1100)
commit465ccab9eb8209a2a402710b24a9bff127b25b94
tree2cd2c3012b7cc5da8d582e9dc221b3ff60c1c806
parente7bda183d4e3f6027ae9181c176a459423d04748
[POWERPC] Fix switch_slb handling of 1T ESID values

Now that we have 1TB segment size support, we need to be using the
GET_ESID_1T macro when comparing ESID values for pc, stack, and
unmapped_base within switch_slb().   A new helper function called
esids_match() contains the logic for deciding when to call GET_ESID
and GET_ESID_1T.

This fixes a duplicate-slb-entry inspired machine-check exception I
was seeing when trying to run java on a power6 partition.

Tested on power6 and power5.

Signed-off-by: Will Schmidt <will_schmidt@vnet.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/slb.c