OSDN Git Service

arm64: Use macros instead of hard-coded constants for MAIR_EL1
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 11 Dec 2019 18:40:09 +0000 (18:40 +0000)
committerWill Deacon <will@kernel.org>
Fri, 17 Jan 2020 12:48:33 +0000 (12:48 +0000)
commit95b3f74bec203804658e17f86fe20755bb8abcb9
tree0d8c66117f30d2c5ff4461d72664fbf3e159cf26
parent83b0c36b8a136042aa9209fc9ca2fab31d5fbe7c
arm64: Use macros instead of hard-coded constants for MAIR_EL1

Currently, the arm64 __cpu_setup has hard-coded constants for the memory
attributes that go into the MAIR_EL1 register. Define proper macros in
asm/sysreg.h and make use of them in proc.S.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/sysreg.h
arch/arm64/mm/proc.S