Skip to content

Commit 5a4e58b

Browse files
liupingfanozbenh
authored andcommitted
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>
1 parent d5b35cf commit 5a4e58b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/mm/slb_low.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _GLOBAL(slb_allocate_realmode)
3535
* check for bad kernel/user address
3636
* (ea & ~REGION_MASK) >= PGTABLE_RANGE
3737
*/
38-
rldicr. r9,r3,4,(63 - 46 - 4)
38+
rldicr. r9,r3,4,(63 - PGTABLE_EADDR_SIZE - 4)
3939
bne- 8f
4040

4141
srdi r9,r3,60 /* get region */

0 commit comments

Comments
 (0)