更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
los_smp.h 文件参考

浏览源代码.

函数

VOID LOS_SmpOpsSet (struct SmpOps *ops)
 设置多核操作接口, 通过外部注册 更多...
 
VOID OsSmpInit (VOID)
 

函数说明

◆ LOS_SmpOpsSet()

VOID LOS_SmpOpsSet ( struct SmpOps ops)

设置多核操作接口, 通过外部注册

在文件 los_smp.c58 行定义.

59{
60 g_smpOps = ops;
61}
STATIC struct SmpOps * g_smpOps
Definition: los_smp.c:42

◆ OsSmpInit()

VOID OsSmpInit ( VOID  )

在文件 los_smp.c63 行定义.

64{
65 UINT32 cpuNum = 1; /* Start the secondary cpus. */
66
67 if (g_smpOps == NULL) {
68 PRINT_ERR("Must call the interface(LOS_SmpOpsSet) to register smp operations firstly!\n");
69 return;
70 }
71
72 for (; cpuNum < CORE_NUM; cpuNum++) {
74 }
75
76 return;
77}
STATIC VOID OsSmpSecondaryInit(VOID *arg)
多核中次级CPU核初始化,每个核都会调用一次
Definition: los_smp.c:44
unsigned int UINT32
Definition: los_typedef.h:57
VOID HalArchCpuOn(UINT32 cpuNum, ArchCpuStartFunc func, struct SmpOps *ops, VOID *arg)
Definition: smp.c:53
函数调用图:
这是这个函数的调用关系图: