xtensa:esp32: enable cp processor of app core

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin 2022-05-23 17:56:18 +08:00 committed by Abdelatif Guettouche
parent 7a6253cb89
commit 23d35336ad
2 changed files with 8 additions and 0 deletions

View file

@ -196,6 +196,10 @@ void IRAM_ATTR xtensa_appcpu_start(void)
up_irq_enable();
#endif
#if XCHAL_CP_NUM > 0
xtensa_set_cpenable(CONFIG_XTENSA_CP_INITSET);
#endif
/* Then switch contexts. This instantiates the exception context of the
* tcb at the head of the assigned task list. In this case, this should
* be the CPUs NULL task.

View file

@ -164,6 +164,10 @@ void xtensa_appcpu_start(void)
up_irq_enable();
#endif
#if XCHAL_CP_NUM > 0
xtensa_set_cpenable(CONFIG_XTENSA_CP_INITSET);
#endif
/* Then switch contexts. This instantiates the exception context of the
* tcb at the head of the assigned task list. In this case, this should
* be the CPUs NULL task.