fix(el3-spmc): use write_el1_ctx_timer() macro to set cntkctl_el1 value

commit 42e35d2f8c
("refactor(cm): convert el1 ctx assembly offset entries to c structure")
moves cntkctl_el1 register from el1_sysregs_t's common to arch_timer
structure.
To set cntkctl_el1, it should use write_el1_ctx_timer() instead of
write_el1_ctx_common() otherwise, build failed.

Signed-off-by: Levi Yun <yeoreum.yun@arm.com>
Change-Id: Ifa1ca6e056fa95bd07598d20705856e208670808
This commit is contained in:
Levi Yun 2024-08-08 09:17:41 +01:00
parent b2c535da56
commit 19082c20d9

View file

@ -386,7 +386,7 @@ static void spmc_el0_sp_setup_system_registers(struct secure_partition_desc *sp,
write_el1_ctx_common(get_el1_sysregs_ctx(ctx), vbar_el1, write_el1_ctx_common(get_el1_sysregs_ctx(ctx), vbar_el1,
SPM_SHIM_EXCEPTIONS_PTR); SPM_SHIM_EXCEPTIONS_PTR);
#if NS_TIMER_SWITCH #if NS_TIMER_SWITCH
write_el1_ctx_common(get_el1_sysregs_ctx(ctx), cntkctl_el1, write_el1_ctx_arch_timer(get_el1_sysregs_ctx(ctx), cntkctl_el1,
EL0PTEN_BIT | EL0VTEN_BIT | EL0PCTEN_BIT | EL0VCTEN_BIT); EL0PTEN_BIT | EL0VTEN_BIT | EL0PCTEN_BIT | EL0VCTEN_BIT);
#endif #endif