📄 prjconfig.c
字号:
/* prjConfig.c - dynamicaly generated configuration file *//*GENERATED: Sun Mar 18 21:23:54 Pacific Daylight Time 2001DO NOT EDIT - file is regenerated whenever the project changes.This file contains the non-BSP system initialization codefor Create a bootable VxWorks image (custom configured).*//* includes */#include "vxWorks.h"#include "config.h"#include "bufLib.h"#include "cacheLib.h"#include "dosFsLib.h"#include "drv/fdisk/nec765Fd.h"#include "drv/hdisk/ataDrv.h"#include "drv/parallel/lptDrv.h"#include "drv/pcmcia/pccardLib.h"#include "drv/serial/pcConsole.h"#include "drv/wdb/wdbSlipPktDrv.h"#include "drv/wdb/wdbVioDrv.h"#include "envLib.h"#include "excLib.h"#include "fioLib.h"#include "hashLib.h"#include "intLib.h"#include "ioLib.h"#include "iosLib.h"#include "logLib.h"#include "math.h"#include "memLib.h"#include "moduleLib.h"#include "msgQLib.h"#include "pipeDrv.h"#include "private/funcBindP.h"#include "private/kernelLibP.h"#include "private/taskLibP.h"#include "private/vmLibP.h"#include "private/workQLibP.h"#include "qPriBMapLib.h"#include "rebootLib.h"#include "selectLib.h"#include "semLib.h"#include "sigLib.h"#include "sioLib.h"#include "stdio.h"#include "string.h"#include "symLib.h"#include "sysLib.h"#include "taskHookLib.h"#include "taskLib.h"#include "taskVarLib.h"#include "tickLib.h"#include "timexLib.h"#include "ttyLib.h"#include "usrConfig.h"#include "version.h"#include "vxLib.h"#include "wdLib.h"#include "wdb/wdb.h"#include "wdb/wdbBpLib.h"#include "wdb/wdbCommIfLib.h"#include "wdb/wdbLib.h"#include "wdb/wdbLibP.h"#include "wdb/wdbMbufLib.h"#include "wdb/wdbRegs.h"#include "wdb/wdbRpcLib.h"#include "wdb/wdbRtIfLib.h"#include "wdb/wdbSvcLib.h"#include "wdb/wdbUdpLib.h"#include "wdb/wdbVioLib.h"/* imports */IMPORT char etext []; /* defined by loader */IMPORT char end []; /* defined by loader */IMPORT char edata []; /* defined by loader *//* configlettes */#include "sysComms.c"#include "net/usrBootLine.c"#include "sysClkInit.c"#include "usrAta.c"#include "usrBreakpoint.c"#include "usrCache.c"#include "usrFd.c"#include "usrKernel.c"#include "usrMmuInit.c"#include "usrPcConsole.c"#include "usrSerial.c"#include "usrStartup.c"#include "usrWdbBanner.c"#include "usrWdbBp.c"#include "usrWdbCore.c"#include "usrWdbFpp.c"#include "usrWdbSys.c"#include "usrWdbSysFpp.c"#include "usrWdbTask.c"#include "usrWdbTaskFpp.c"#include "wdbSerial.c"/******************************************************************************** usrInit - pre-kernel initialization*/void usrInit (int startType) { sysStart (startType); /* clear BSS and set up the vector table base address. */ cacheLibInit (USER_I_CACHE_MODE, USER_D_CACHE_MODE); /* include cache support */ excVecInit (); /* exception handling */ sysHwInit (); /* call the BSPs sysHwInit routine during system startup */ usrCacheEnable (); /* optionally enable caches */ usrKernelInit (); /* context switch and interrupt handling. DO NOT REMOVE. */ }/******************************************************************************** usrWdbInit - the WDB target agent*/void usrWdbInit (void) { wdbConfig (); /* software agent to support the tornado tools */ wdbMemLibInit (); /* read/write target memory */ wdbSysModeInit (); /* A breakpoint stops the entire operating system. */ wdbTaskModeInit (); /* A breakpoint stops one task, while others keep running. */ wdbEventLibInit (); /* asynchronous event handling needed for breakpoints etc. */ wdbEvtptLibInit (); /* support library for breakpoints and other asynchonous events. */ wdbDirectCallLibInit (); /* call arbitrary functions directly from WDB */ wdbCtxLibInit (); /* create/delete/manipulate tasks */ wdbRegsLibInit (); /* get/set registers */ wdbGopherLibInit (); /* information gathering language used by many tools */ wdbCtxExitLibInit (); /* ability to notify the host when a task exits */ wdbExcLibInit (); /* notify the host when an exception occurs */ wdbFuncCallLibInit (); /* asynchronous function calls */ wdbVioLibInit (); /* low-level virtual I/O handling */ wdbVioDrv ("/vio"); /* vxWorks driver for accessing virtual I/O */ usrWdbBp (); /* core breakpoint library */ wdbTaskBpLibInit (); /* task-mode breakpoint library */ wdbCtxStartLibInit (); /* ability to notify the host when a task starts */ wdbUserEvtLibInit (); /* ability to send user events to the host */ wdbFppInit (); /* WDB hardware fpp support */ wdbTaskFppInit (); /* task mode fpp debug support */ wdbSysFppInit (); /* system mode mode fpp debug support */ usrWdbBanner (); /* print banner to console after the agent is initialized */ }/******************************************************************************** usrShowInit - enable object show routines*/void usrShowInit (void) { msgQShowInit (); /* message queue show routine */ }/******************************************************************************** usrToolsInit - software development tools*/void usrToolsInit (void) { timexInit (); /* utility to measure function execution time */ moduleLibInit (); /* support library for the target-based loader. */ usrWdbInit (); /* the WDB target agent */ usrShowInit (); /* enable object show routines */ }/******************************************************************************** usrKernelCoreInit - core kernel facilities*/void usrKernelCoreInit (void) { semBLibInit (); /* binary semaphores */ semMLibInit (); /* mutex semaphores */ semCLibInit (); /* counting semaphores */ msgQLibInit (); /* message queues */ wdLibInit (); /* watchdog timers */ taskHookInit (); /* user callouts on task creation/deletion/context switch */ }/******************************************************************************** usrKernelExtraInit - extended kernel facilities*/void usrKernelExtraInit (void) { hashLibInit (); /* hash library */ symLibInit (); /* symbol table */ envLibInit (ENV_VAR_USE_HOOKS); /* environment variables */ sigInit (); /* signals */ }/******************************************************************************** usrIosCoreInit - core I/O system*/void usrIosCoreInit (void) { mathHardInit (); /* hardware fpp support */ usrBootLineParse (BOOT_LINE_ADRS); /* parse some boot device configuration info */ iosInit (NUM_DRIVERS, NUM_FILES, "/null"); /* IO system */ ttyDrv (); /* terminal driver */ usrSerialInit (); /* SIO component */ usrPcConsoleInit (); /* PC console component */ }/******************************************************************************** usrIosExtraInit - extended I/O system*/void usrIosExtraInit (void) { excInit (); /* miscellaneous support task */ logInit (consoleFd, MAX_LOG_MSGS); /* message logging */ pipeDrv (); /* pipes */ stdioInit (); /* buffered IO library */ dosFsInit (NUM_DOSFS_FILES); /* DOS filesystem */ fdDrv (FD_INT_VEC, FD_INT_LVL); /* NEC 765 floppy drive component */ usrAtaInit (); /* ATA hard drive component */ lptDrv (LPT_CHANNELS, &lptResources[0]); /* Parallel port components */ fioLibInit (); /* formatting for printf, scanf, etc. */ floatInit (); /* allow printf and others to format floats correctly */ }/******************************************************************************** usrRoot - entry point for post-kernel initialization*/void usrRoot (char *pMemPoolStart, unsigned memPoolSize) { usrKernelCoreInit (); /* core kernel facilities */ memPartLibInit (pMemPoolStart, memPoolSize); /* core memory partition manager */ memInit (pMemPoolStart, memPoolSize); /* full featured memory allocator */ usrMmuInit (); /* basic MMU component */ sysClkInit (); /* System clock component */ usrIosCoreInit (); /* core I/O system */ usrKernelExtraInit (); /* extended kernel facilities */ usrIosExtraInit (); /* extended I/O system */ selectInit (); /* select */ usrToolsInit (); /* software development tools */ usrAppInit (); /* call usrAppInit() (in your usrAppInit.c project file) after startup. */ }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -