You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2022/05/23 20:02:32 UTC
[incubator-nuttx] branch master updated: xtensa:esp32: enable cp processor of app core
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 23d35336ad xtensa:esp32: enable cp processor of app core
23d35336ad is described below
commit 23d35336adbcdbbf1731ceb7dce608839d732ec3
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Mon May 23 17:56:18 2022 +0800
xtensa:esp32: enable cp processor of app core
Signed-off-by: zhuyanlin <zh...@xiaomi.com>
---
arch/xtensa/src/esp32/esp32_cpustart.c | 4 ++++
arch/xtensa/src/esp32s3/esp32s3_cpustart.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/arch/xtensa/src/esp32/esp32_cpustart.c b/arch/xtensa/src/esp32/esp32_cpustart.c
index 86fdb5334e..5ffd624833 100644
--- a/arch/xtensa/src/esp32/esp32_cpustart.c
+++ b/arch/xtensa/src/esp32/esp32_cpustart.c
@@ -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.
diff --git a/arch/xtensa/src/esp32s3/esp32s3_cpustart.c b/arch/xtensa/src/esp32s3/esp32s3_cpustart.c
index ad0857f506..d4e5a45e8d 100644
--- a/arch/xtensa/src/esp32s3/esp32s3_cpustart.c
+++ b/arch/xtensa/src/esp32s3/esp32s3_cpustart.c
@@ -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.