]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a4d3ffadc326c600e3dd136e8d12a6878d40238
tree0d8c66117f30d2c5ff4461d72664fbf3e159cf26
parentce9c7ec4972f473a392ca89ee1deb83bd90c26be
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