diff options
author | Liu Ping Fan <kernelfans@gmail.com> | 2013-11-21 10:17:54 +0800 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-05-01 08:26:39 +1000 |
commit | 5a4e58bc693f04aa650219784e5e339e0db6b902 (patch) | |
tree | dc2df54f9c819a4470752e9ab17f97a99b20ea9c /arch/powerpc/mm/slb_low.S | |
parent | d5b35cffe3d3c2bc297b7c1fb997a6139de02e12 (diff) | |
download | op-kernel-dev-5a4e58bc693f04aa650219784e5e339e0db6b902.zip op-kernel-dev-5a4e58bc693f04aa650219784e5e339e0db6b902.tar.gz |
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/mm/slb_low.S')
-rw-r--r-- | arch/powerpc/mm/slb_low.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slb_low.S b/arch/powerpc/mm/slb_low.S index 17aa6df..e0b3cf4 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 */ |