MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / primary_cpu_entry

Function primary_cpu_entry

bsp/allwinner/d1/board/board.c:68–77  ·  view source on GitHub ↗

BSP的C入口

Source from the content-addressed store, hash-verified

66
67//BSP的C入口
68void primary_cpu_entry(void)
69{
70 //初始化BSS
71 init_bss();
72 //关中断
73 rt_hw_interrupt_disable();
74 rt_assert_set_hook(__rt_assert_handler);
75 //启动RT-Thread Smart内核
76 entry();
77}
78
79
80//这个初始化程序由内核主动调用,此时调度器还未启动,因此在此不能使用依赖线程上下文的函数

Callers

nothing calls this directly

Calls 4

rt_assert_set_hookFunction · 0.85
entryFunction · 0.85
init_bssFunction · 0.70
rt_hw_interrupt_disableFunction · 0.50

Tested by

no test coverage detected