mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 21:44:15 +00:00
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:
parent
b2c535da56
commit
19082c20d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue