mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK
Replace '0xf' with ID_AA64MMFR1_EL1_HAFDBS_MASK while evaluating if the cpu supports implicit page table entry access flag update in HW. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Link: https://lore.kernel.org/r/20230711090458.238346-1-anshuman.khandual@arm.com Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
6eaae19807
commit
d0999555e3
|
|
@ -447,7 +447,7 @@ SYM_FUNC_START(__cpu_setup)
|
|||
* via capabilities.
|
||||
*/
|
||||
mrs x9, ID_AA64MMFR1_EL1
|
||||
and x9, x9, #0xf
|
||||
and x9, x9, ID_AA64MMFR1_EL1_HAFDBS_MASK
|
||||
cbz x9, 1f
|
||||
orr tcr, tcr, #TCR_HA // hardware Access flag update
|
||||
1:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user