From 0c29bed30f81f79f3265813b186d1091e4411dc4 Mon Sep 17 00:00:00 2001 From: wangqinglin <53550140+HelloByeAll@users.noreply.github.com> Date: Mon, 5 Jun 2023 16:43:31 +0800 Subject: 内核Kconfig增加AMP选项, api:rt_hw_cpu_id和 RT_USING_SMP宏解耦,增加rt_hw_ipi_send对RT_USING_AMP的依赖 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kconfig | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Kconfig b/src/Kconfig index 4a4b06413a..2cc250de38 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -38,6 +38,22 @@ config RT_USING_SMART help RT-Thread Smart is a microkernel based operating system on RT-Thread. +config RT_USING_AMP + bool "Enable AMP(Asymmetric Multi-Processing)" + default n + if RT_USING_AMP + choice + prompt "Select the AMP role" + default RT_AMP_SLAVE + + config RT_AMP_MASTER + bool "amp role MASTER" + + config RT_AMP_SLAVE + bool "amp role SLAVE" + endchoice + endif + config RT_USING_SMP bool "Enable SMP(Symmetric multiprocessing)" default n @@ -50,7 +66,7 @@ config RT_USING_SMP config RT_CPUS_NR int "Number of CPUs" default 2 - depends on RT_USING_SMP + depends on RT_USING_SMP || RT_USING_AMP help Number of CPUs in the system -- cgit v1.3.1