【正文】
5 啟動 啟動概述1. Bootrom 的啟動最少的系統(tǒng)初始化,主要用于啟動裝載VxWorks , ,.()()()sysHwInit()usrKernelInit()KernelInit(usrRoot,...)entry)加載模塊到內(nèi)存(網(wǎng)絡(luò),TFFS,TSFS...)netifAttach()go(entry)(entry)()從入口開始執(zhí)行,不返回. Activates a task tUsrRoot to plete initalization. 初始化系統(tǒng)系統(tǒng)時鐘(system clock) 激活WDB目標通信(Activate WDB agent)可選 RAM運行的Boot或VxWorks image的text段或data段會從ROM復制到RAM,在RAM中運行.其中usrRoot()是VxWorks啟動的第一個任務,由它來初始化 driver,network等描述: first execute in flash,minal initiliz,then jump to romStart. Create devices可選 Uses usrInit()stack. usrRoot() Initializes and starts the kernel. Data segmentInitilized global and static varibles. Text segmentexecutable instruction. 各個函數(shù)的主要作用 romInit()power up,disable interrupt,put boot type on the stack,clears caches.romStart()