Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Ping Fan and committed by
Benjamin Herrenschmidt
5a4e58bc d5b35cff

+1 -1
+1 -1
arch/powerpc/mm/slb_low.S
··· 35 35 * check for bad kernel/user address 36 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 39 bne- 8f 40 40 41 41 srdi r9,r3,60 /* get region */