diff options
author | Liu Ping Fan <kernelfans@gmail.com> | 2013-11-21 03:17:54 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-05-01 00:26:39 +0200 |
commit | 5a4e58bc693f04aa650219784e5e339e0db6b902 (patch) | |
tree | dc2df54f9c819a4470752e9ab17f97a99b20ea9c /arch/powerpc/mm/slb_low.S | |
parent | ppc476: Enable a linker work around for IBM errata #46 (diff) | |
download | linux-5a4e58bc693f04aa650219784e5e339e0db6b902.tar.xz linux-5a4e58bc693f04aa650219784e5e339e0db6b902.zip |
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 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 */ |