Skip to content
Commit bf950040 authored by Will Deacon's avatar Will Deacon
Browse files

arm64: pgtable: use a single bit for PTE_WRITE regardless of DBM



Depending on CONFIG_ARM64_HW_AFDBM, we use either bit 57 or 51 of the
pte to represent PTE_WRITE. Given that bit 51 is reserved prior to
ARMv8.1, we can just use that bit regardless of the config option. That
also matches what happens if a kernel configured with ARM64_HW_AFDBM=y
is run on a CPU without the DBM functionality.

Cc: Julien Grall <julien.grall@citrix.com>
Tested-by: default avatarJulien Grall <julien.grall@citrix.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 62d96c71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment