aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorLiu Ping Fan <kernelfans@gmail.com>2013-11-20 21:17:54 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-30 18:26:39 -0400
commit5a4e58bc693f04aa650219784e5e339e0db6b902 (patch)
treedc2df54f9c819a4470752e9ab17f97a99b20ea9c /arch/powerpc
parentd5b35cffe3d3c2bc297b7c1fb997a6139de02e12 (diff)
powerpc/mm: use macro PGTABLE_EADDR_SIZE instead of digital
In case of extending the eaddr in future, use this macro PGTABLE_EADDR_SIZE to ease the maintenance of the code. Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/mm/slb_low.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slb_low.S b/arch/powerpc/mm/slb_low.S
index 17aa6dfceb34..e0b3cf42b053 100644
--- a/arch/powerpc/mm/slb_low.S
+++ b/arch/powerpc/mm/slb_low.S
@@ -35,7 +35,7 @@ _GLOBAL(slb_allocate_realmode)
35 * check for bad kernel/user address 35 * check for bad kernel/user address
36 * (ea & ~REGION_MASK) >= PGTABLE_RANGE 36 * (ea & ~REGION_MASK) >= PGTABLE_RANGE
37 */ 37 */
38 rldicr. r9,r3,4,(63 - 46 - 4) 38 rldicr. r9,r3,4,(63 - PGTABLE_EADDR_SIZE - 4)
39 bne- 8f 39 bne- 8f
40 40
41 srdi r9,r3,60 /* get region */ 41 srdi r9,r3,60 /* get region */