Download VxWorks®

Transcript
VxWorks 5.5
BSP Developer’s Guide
E.3.4 sysALib.s
For downloaded images only, execution begins with sysInit( ), instead of
romInit( ), romStart( ), and usrEntry( ). This routine should repeat all the
processor and hardware initialization done by romInit( ), except for main memory.
This routine terminates by calling usrInit( ) in prjConfig.c.
E.3.5 prjConfig.c
NOTE: Do not presume that future releases will preserve the names or nature of
any initGroups included in Tornado 2.x, except usrInit and usrRoot.
usrInit
{// pre-multitasking init group
INCLUDE_SYS_START
INCLUDE_CACHE_SUPPORT
INCLUDE_EXC_HANDLING
INCLUDE_SYSHW_INIT
INCLUDE_CACHE_ENABLE
INCLUDE_WINDVIEW_CLASS
INCLUDE_KERNEL // DO NOT REMOVE.
} // end of usrInit
The required element INCLUDE_KERNEL must always be the last component
initialized in usrInit( ). It starts multitasking by creating the root task and
scheduling it to execute the routine usrRoot( ).
usrRoot
{// post-multitasking init group
usrKernelCoreInit
{// kernel core features init group
INCLUDE_SEM_BINARY
INCLUDE_SEM_MUTEX
INCLUDE_SEM_COUNTING
INCLUDE_MSG_Q
INCLUDE_WATCHDOGS
INCLUDE_TASK_HOOKS
} // end of usrKernelCoreInit
INCLUDE_MEM_MGR_BASIC
INCLUDE_MEM_MGR_FULL
240