target-arm: add arm_is_secure() function
commit19e0fefa6f66adb5bd7d072a6b83dbb95f92db2d
authorFabian Aggeler <aggelerf@ethz.ch>
Fri, 24 Oct 2014 11:19:14 +0000 (24 12:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:14 +0000 (24 12:19 +0100)
tree9aabb9d6c7fed99fe78607e892a474eead9c5cf1
parent0b7d409d428dcd606128c71d589f3a8469c9944f
target-arm: add arm_is_secure() function

arm_is_secure() function allows to determine CPU security state
if the CPU implements Security Extensions/EL3.
arm_is_secure_below_el3() returns true if CPU is in secure state
below EL3.

Signed-off-by: Sergey Fedorov <s.fedorov@samsung.com>
Signed-off-by: Fabian Aggeler <aggelerf@ethz.ch>
Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1413910544-20150-3-git-send-email-greg.bellows@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h