mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
arm: Use secure hypervisor timer in MPU system
As MPU systems only have one secure state, we have to use secure EL2 hypervisor timer for Xen in secure EL2. Signed-off-by: Penny Zheng <penny.zheng@arm.com> Signed-off-by: Wei Chen <wei.chen@arm.com> Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> Signed-off-by: Harry Ramsey <harry.ramsey@arm.com> Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com> Acked-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
1 parent
2dbdf8607c
commit
e232aa054c
1 file changed
+11
@@ -462,6 +462,17 @@
|
||||
#define ZCR_ELx_LEN_SIZE 9
|
||||
#define ZCR_ELx_LEN_MASK 0x1ff
|
||||
|
||||
#ifdef CONFIG_MPU
|
||||
/*
|
||||
* The Armv8-R AArch64 architecture always executes code in Secure
|
||||
* state with EL2 as the highest exception level.
|
||||
*
|
||||
* Hypervisor timer registers for Secure EL2.
|
||||
*/
|
||||
#define CNTHP_CTL_EL2 CNTHPS_CTL_EL2
|
||||
#define CNTHP_CVAL_EL2 CNTHPS_CVAL_EL2
|
||||
#endif
|
||||
|
||||
#define REGION_TEXT_PRBAR 0x38 /* SH=11 AP=10 XN=00 */
|
||||
#define REGION_RO_PRBAR 0x3A /* SH=11 AP=10 XN=10 */
|
||||
#define REGION_DATA_PRBAR 0x32 /* SH=11 AP=00 XN=10 */
|
||||
|
||||