提交 ce4323ff 编写于 作者: O openharmony_ci 提交者: Gitee

!704 【fix】smp启动时副核冗余的启动框架调用

Merge pull request !704 from Zhaotianyu/1110smpinit_fix
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "los_hw.h" #include "los_hw.h"
#include "los_atomic.h" #include "los_atomic.h"
#include "los_arch_mmu.h" #include "los_arch_mmu.h"
#include "los_init_pri.h"
#include "gic_common.h" #include "gic_common.h"
#include "los_task_pri.h" #include "los_task_pri.h"
...@@ -94,7 +93,6 @@ VOID HalSecondaryCpuStart(VOID) ...@@ -94,7 +93,6 @@ VOID HalSecondaryCpuStart(VOID)
/* store each core's hwid */ /* store each core's hwid */
CPU_MAP_SET(cpuid, OsHwIDGet()); CPU_MAP_SET(cpuid, OsHwIDGet());
HalIrqInitPercpu(); HalIrqInitPercpu();
OsInitCall(LOS_INIT_LEVEL_ARCH);
cpuInit->cpuStart(cpuInit->arg); cpuInit->cpuStart(cpuInit->arg);
......
...@@ -44,17 +44,13 @@ STATIC struct SmpOps *g_smpOps = NULL; ...@@ -44,17 +44,13 @@ STATIC struct SmpOps *g_smpOps = NULL;
STATIC VOID OsSmpSecondaryInit(VOID *arg) STATIC VOID OsSmpSecondaryInit(VOID *arg)
{ {
UNUSED(arg); UNUSED(arg);
OsInitCall(LOS_INIT_LEVEL_PLATFORM);
OsCurrProcessSet(OS_PCB_FROM_PID(OsGetKernelInitProcessID())); OsCurrProcessSet(OS_PCB_FROM_PID(OsGetKernelInitProcessID()));
OsInitCall(LOS_INIT_LEVEL_KMOD_BASIC);
#ifdef LOSCFG_BASE_CORE_SWTMR_ENABLE #ifdef LOSCFG_BASE_CORE_SWTMR_ENABLE
OsSwtmrInit(); OsSwtmrInit();
#endif #endif
OsInitCall(LOS_INIT_LEVEL_KMOD_EXTENDED);
OsIdleTaskCreate(); OsIdleTaskCreate();
OsInitCall(LOS_INIT_LEVEL_KMOD_TASK); OsInitCall(LOS_INIT_LEVEL_KMOD_TASK);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册