]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Fix SCTLR_EL1 initialisation
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Wed, 17 Dec 2014 15:50:21 +0000 (15:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 23 Jan 2015 15:47:16 +0000 (15:47 +0000)
commitff3b1e6438d0e05da918319230ccd986d9fb3f0b
treefbcbb802f89ec152b32ea3908decdbe5a58ad9f7
parent9c4cda9dd1450d6715216eb84a94094987c12aef
arm64: Fix SCTLR_EL1 initialisation

We initialise the SCTLR_EL1 value by read-modify-writeback
of the desired bits, leaving the other bits (including reserved
bits(RESx)) untouched. However, sometimes the boot monitor could
leave garbage values in the RESx bits which could have different
implications. This patch makes sure that all the bits, including
the RESx bits, are set to the proper state, except for the
'endianness' control bits, EE(25) & E0E(24)- which are set early
in the el2_setup.

Updated the state of the Bit[6] in the comment to RES0 in the
comment.

Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/proc.S