From: Liu Ping Fan Date: Thu, 21 Nov 2013 02:17:54 +0000 (+0800) Subject: powerpc/mm: use macro PGTABLE_EADDR_SIZE instead of digital X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5a4e58bc693f04aa650219784e5e339e0db6b902;p=deliverable%2Flinux.git 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 Signed-off-by: Benjamin Herrenschmidt --- 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) * check for bad kernel/user address * (ea & ~REGION_MASK) >= PGTABLE_RANGE */ - rldicr. r9,r3,4,(63 - 46 - 4) + rldicr. r9,r3,4,(63 - PGTABLE_EADDR_SIZE - 4) bne- 8f srdi r9,r3,60 /* get region */