鸿蒙研究站
|
官方文档
|
源码分析
== 鸿蒙内核参考手册 ==
内核注释
|
论坛
|
赞助作者
更新日期: 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.c
第
58
行定义.
59
{
60
g_smpOps
= ops;
61
}
g_smpOps
STATIC struct SmpOps * g_smpOps
Definition:
los_smp.c:42
◆
OsSmpInit()
VOID OsSmpInit
(
VOID
)
在文件
los_smp.c
第
63
行定义.
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++) {
73
HalArchCpuOn
(cpuNum,
OsSmpSecondaryInit
,
g_smpOps
, 0);
74
}
75
76
return
;
77
}
OsSmpSecondaryInit
STATIC VOID OsSmpSecondaryInit(VOID *arg)
多核中次级CPU核初始化,每个核都会调用一次
Definition:
los_smp.c:44
UINT32
unsigned int UINT32
Definition:
los_typedef.h:57
HalArchCpuOn
VOID HalArchCpuOn(UINT32 cpuNum, ArchCpuStartFunc func, struct SmpOps *ops, VOID *arg)
Definition:
smp.c:53
函数调用图:
这是这个函数的调用关系图:
kernel
include
los_smp.h
公众号:鸿蒙研究站(weharmonyos)
|
论坛: bbs.weharmonyos.com
| 制作者
鸿蒙研究站 | weharmonyos.com