diff options
author | Pali Rohár <pali@kernel.org> | 2022-05-01 19:17:35 +0200 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2022-06-20 09:18:26 +0800 |
commit | 6b6c377feb4805f56bfd8de42143b75fc4a186af (patch) | |
tree | a4a62aad85e503aeaf1de7f3a5f423cec8f6be3f | |
parent | 02c8fbdb8d41cfa81e2df990da8151ea93bb2f7e (diff) | |
download | u-boot-6b6c377feb4805f56bfd8de42143b75fc4a186af.zip u-boot-6b6c377feb4805f56bfd8de42143b75fc4a186af.tar.gz u-boot-6b6c377feb4805f56bfd8de42143b75fc4a186af.tar.bz2 |
powerpc: mmu: Fix FSL_BOOKE_MAS2() macro
Effective page number mask for MAS2 register is stored in macro MAS2_EPN.
Fixes: 2146cf56821c ("Reworked FSL Book-E TLB macros to be more readable")
Signed-off-by: Pali Rohár <pali@kernel.org>
-rw-r--r-- | arch/powerpc/include/asm/mmu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h index 2e6255f..b0aafdc 100644 --- a/arch/powerpc/include/asm/mmu.h +++ b/arch/powerpc/include/asm/mmu.h @@ -447,7 +447,7 @@ extern void print_bats(void); (((ts) << 12) & MAS1_TS) |\ (MAS1_TSIZE(tsize))) #define FSL_BOOKE_MAS2(epn, wimge) \ - (((epn) & MAS3_RPN) | (wimge)) + (((epn) & MAS2_EPN) | (wimge)) #define FSL_BOOKE_MAS3(rpn, user, perms) \ (((rpn) & MAS3_RPN) | (user) | (perms)) #define FSL_BOOKE_MAS7(rpn) \ |