第五章:Boot Sequence(启动顺序)
本章通过介绍在Boot.booted发生前后执行的各个步骤,来展示正确初始化组件的过程。
1、启动顺序:a、调度器初始化(scheduler initialization) b、组件初始化(Component initialization) c、发启动过程完成的信号(signal that the boot process has completed) d、运行调度器(Run the scheduler)
2、 真正的启动操作序列在RealMainP(tos/system)中,以P结尾的组件不可以直接配线。
观察RealMainP的全部代码:
module RealMainP {
provides interface Boot;
uses interface Scheduler;
uses interface Init as PlatformInit;
uses interface Init as SoftwareInit;
}
implementation {