Commit 5a4e58bc authored by Liu Ping Fan's avatar Liu Ping Fan Committed by Benjamin Herrenschmidt

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: default avatarLiu Ping Fan <pingfank@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent d5b35cff
...@@ -35,7 +35,7 @@ _GLOBAL(slb_allocate_realmode) ...@@ -35,7 +35,7 @@ _GLOBAL(slb_allocate_realmode)
* check for bad kernel/user address * check for bad kernel/user address
* (ea & ~REGION_MASK) >= PGTABLE_RANGE * (ea & ~REGION_MASK) >= PGTABLE_RANGE
*/ */
rldicr. r9,r3,4,(63 - 46 - 4) rldicr. r9,r3,4,(63 - PGTABLE_EADDR_SIZE - 4)
bne- 8f bne- 8f
srdi r9,r3,60 /* get region */ srdi r9,r3,60 /* get region */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment