From 0c717e5537b57443f88a5290fe5cad7ddccc6301 Mon Sep 17 00:00:00 2001 From: billyuanyk Date: Wed, 8 Apr 2026 20:23:13 +0700 Subject: [PATCH 1/2] Remove temporarily multicore --- src/rtfw_core.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/rtfw_core.c b/src/rtfw_core.c index a2b4270..c5f1be6 100644 --- a/src/rtfw_core.c +++ b/src/rtfw_core.c @@ -42,22 +42,26 @@ static inline void os_core_sync_all_cores(Atomic *const sync_value_ref) FUNC(void, OS_CODE) os_core_sync_phase_one(void) { - os_core_sync_all_cores(&g_coresync_flag_one); + return ; + // os_core_sync_all_cores(&g_coresync_flag_one); } FUNC(void, OS_CODE) os_core_sync_phase_two(void) { - os_core_sync_all_cores(&g_coresync_flag_two); + return ; + // os_core_sync_all_cores(&g_coresync_flag_two); } FUNC(void, OS_CODE) os_core_shutdown_sync(void) { - os_core_sync_all_cores(&g_coreshutdown_sync); + return ; + // os_core_sync_all_cores(&g_coreshutdown_sync); } FUNC(void, OS_CODE) os_shutdown_core(StatusType error_status) { - os_int_disable_global(); + return ; + // os_int_disable_global(); //TODO: kill app @@ -73,13 +77,14 @@ FUNC(void, OS_CODE) os_shutdown_core(StatusType error_status) FUNC(void, OS_CODE) os_shutdown_os(StatusType error_status) { - const os_ctx_cfg_t *const current_context = os_context_get_contexthdl(); - - if (UNLIKELY(FALSE == os_context_check_curcontext_id(current_context, OS_CONTEXT_SHUTDOWNOS))) { - REPORT_PROTECTION_ERROR(E_OS_CALLEVEL); - } else { - os_shutdown_core(error_status); - } + return ; + // const os_ctx_cfg_t *const current_context = os_context_get_contexthdl(); + + // if (UNLIKELY(FALSE == os_context_check_curcontext_id(current_context, OS_CONTEXT_SHUTDOWNOS))) { + // REPORT_PROTECTION_ERROR(E_OS_CALLEVEL); + // } else { + // os_shutdown_core(error_status); + // } } FUNC(void, OS_CODE) os_shutdown_all_cores(StatusType error_status) @@ -88,7 +93,7 @@ FUNC(void, OS_CODE) os_shutdown_all_cores(StatusType error_status) uint32 core_mask = ((0x00000001U<<(uint32)OS_CORE_CNT) - 1U) & (~(0x00000001U<<(uint32)core_id)); - os_ipicall_shutdown_all_cores(core_mask, error_status); + // os_ipicall_shutdown_all_cores(core_mask, error_status); os_shutdown_core(error_status); } -- Gitee From 5fe4f04ad0c63c548d8abcb7410f1da5c8c20b10 Mon Sep 17 00:00:00 2001 From: billyuanyk Date: Sun, 12 Apr 2026 21:12:07 +0700 Subject: [PATCH 2/2] Comment out the multicore process temporarily --- src/rtfw_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rtfw_core.c b/src/rtfw_core.c index c5f1be6..c9d44de 100644 --- a/src/rtfw_core.c +++ b/src/rtfw_core.c @@ -89,9 +89,9 @@ FUNC(void, OS_CODE) os_shutdown_os(StatusType error_status) FUNC(void, OS_CODE) os_shutdown_all_cores(StatusType error_status) { - CoreIdType core_id = os_get_core_id(); + // CoreIdType core_id = os_get_core_id(); - uint32 core_mask = ((0x00000001U<<(uint32)OS_CORE_CNT) - 1U) & (~(0x00000001U<<(uint32)core_id)); + // uint32 core_mask = ((0x00000001U<<(uint32)OS_CORE_CNT) - 1U) & (~(0x00000001U<<(uint32)core_id)); // os_ipicall_shutdown_all_cores(core_mask, error_status); -- Gitee