Skip to content

Commit d099955

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
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 <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 6eaae19 commit d099955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/mm/proc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ SYM_FUNC_START(__cpu_setup)
447447
* via capabilities.
448448
*/
449449
mrs x9, ID_AA64MMFR1_EL1
450-
and x9, x9, #0xf
450+
and x9, x9, ID_AA64MMFR1_EL1_HAFDBS_MASK
451451
cbz x9, 1f
452452
orr tcr, tcr, #TCR_HA // hardware Access flag update
453453
1:

0 commit comments

Comments
 (0)