02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

D<br />

VxWorks Boot Sequence<br />

Table D-1<br />

VxWorks Boot Sequence (Continued)<br />

Functions Activity File<br />

(j)<br />

sysHwInit( ), to initialize board dependent<br />

hardware<br />

sysLib.c<br />

(k) usrKernelInit( ), to configure the wind kernel usrKernel.c<br />

(l)<br />

if (instruction cache)<br />

enable the instruction cache<br />

if (data cache)<br />

enable the data cache<br />

(m) kernelInit( ) lib/*.a<br />

5. kernelInit( ) Initialize and start the kernel. lib/*.a<br />

(a) intLockLevelSet( ) lib/*.a<br />

(b)<br />

(c)<br />

if (interrupt stack)<br />

create interrupt stack from beginning of memory<br />

pool<br />

create root stack and TCB from end of memory<br />

pool<br />

D<br />

(d) taskInit(tRootTask) lib/*.a<br />

(e) taskActivate(usrRoot) lib/*.a<br />

(f) usrRoot( ) usrConfig.c<br />

6. usrRoot( ) Initialize I/O system, install drivers, create devices,<br />

and set up network as configured in configAll.h and<br />

config.h.<br />

usrConfig.c<br />

(a)<br />

memInit( ) to initialize memory pool<br />

if (show routines)<br />

memShowInit( )<br />

if (virtual memory)<br />

usrMmuInit( )<br />

lib/*.a<br />

lib/*.a<br />

usrMmuInit.c<br />

(b) sysClkConnect( ) sysLib.c<br />

(c) sysClkRateSet( ) sysLib.c<br />

(d) sysClkEnable( ) sysLib.c<br />

(e) selectInit( )<br />

225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!