资源简介
vxworks5.5内核源码,很全,包括各种内核驱动等,结合tornado下的代码,基本可以深度剖析vxworks了,很难找到
代码片段和文件信息
/* usrSmObj.c - shared memory object initialization */
/* Copyright 1992-2002 Wind River Systems Inc. */
/*
modification history
--------------------
01e13feb02mas fixed staged delay/check for slave node startup (SPR 73189)
01d02oct01mas added staged delay/check for slave node startup (SPR 62128)
01c13sep01jws fix smObjSpinTries initialization (SPR68418)
01b20jan99scb modified to use “sm=“ before SM_ANCHOR_ADRS (23035)
01a16feb97ms based on old 01i version.
*/
/*
DEscriptION
This file is used to configure and initialize the VxWorks shared memory
object support. This file is included by usrConfig.c.
SEE ALSO: usrExtra.c
NOMANUAL
*/
/******************************************************************************
*
* usrSmObjInit - initialize shared memory objects
*
* This routine initializes the shared memory objects facility. It sets up
* the shared memory objects facility if called from processor 0.
* Then it initializes a shared memory descriptor and calls smObjAttach()
* to attach this CPU to the shared memory object facility.
*
* When the shared memory pool resides on the local CPU dual ported memory
* SM_OBJ_MEM_ADRS must be set to NONE in configAll.h and the shared memory
* objects pool is allocated from the VxWorks system pool.
*
* RETURNS: OK or ERROR if unsuccessful.
*
* INTERNAL
* The delayed start for slave processors used below is required. The anchor
* may not yet be mapped to the bus. So probing of shared memory locations is
* used to overcome Bus Errors which occur on many boards if the slave accesses
* shared memory (SM) before the master has finished initializing it. The code
* here simply delays access to the SM region until the SM master has finished
* initializing it.
*
* The method used is to repetitively probe key locations in the SM region
* after delay periods until valid values are detected or a time-out occurs.
* The initial delay period is set based on processor number. (The master
* processor does not delay.) If the first probe of a location fails an
* exponential increase in delay period is used to reduce bus contention on
* subsequent probes.
*
* This method is no better than receiving raw BERRs and does reduce bus
* contention and the number of BERRs.
*
* NOMANUAL
*/
STATUS usrSmObjInit
(
char * bootString /* boot parameter string */
)
{
char * smAnchor; /* anchor address */
char * smObjFreeAdrs; /* free pool address */
int smObjMemSize; /* pool size */
BOOT_PARAMS params; /* boot paramters */
BOOL allocatedPool; /* TRUE if pool is maloced */
SM_OBJ_PARAMS smObjParams; /* smObj setup parameters */
char bb; /* bit bucket for vxMemProbe */
int tics; /* SM probe delay period */
UINT temp; /* temp for smUtilMemProbe() */
UINT maxWait = SM_MAX_WAIT;
char * cp;
SM_OBJ_MEM_HDR * pSmObjHdr = NULL; /* ptr to SMO head
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-09-22 18:16 vxworks5-master\
目录 0 2014-09-22 18:16 vxworks5-master\target\
文件 595 2014-09-22 18:16 vxworks5-master\target\Makefile
目录 0 2014-09-22 18:16 vxworks5-master\target\config\
文件 2905 2014-09-22 18:16 vxworks5-master\target\config\Makefile
目录 0 2014-09-22 18:16 vxworks5-master\target\config\comps\
目录 0 2014-09-22 18:16 vxworks5-master\target\config\comps\src\
目录 0 2014-09-22 18:16 vxworks5-master\target\config\comps\src\dosfs2\
文件 7906 2014-09-22 18:16 vxworks5-master\target\config\comps\src\dosfs2\usrAta.c
文件 3027 2014-09-22 18:16 vxworks5-master\target\config\comps\src\dosfs2\usrFd.c
文件 9709 2014-09-22 18:16 vxworks5-master\target\config\comps\src\usrSmObj.c
文件 4984 2014-09-22 18:16 vxworks5-master\target\config\comps\src\usrVxFusion.c
目录 0 2014-09-22 18:16 vxworks5-master\target\config\comps\vxWorks\
文件 1545 2014-09-22 18:16 vxworks5-master\target\config\comps\vxWorks\01vxmp.cdf
文件 1857 2014-09-22 18:16 vxworks5-master\target\config\comps\vxWorks\02vxfusion.cdf
文件 4383 2014-09-22 18:16 vxworks5-master\target\config\comps\vxWorks\10bsp.cdf
文件 5942 2014-09-22 18:16 vxworks5-master\target\config\comps\vxWorks\10dosfs2.cdf
目录 0 2014-09-22 18:16 vxworks5-master\target\h\
目录 0 2014-09-22 18:16 vxworks5-master\target\h\arch\
目录 0 2014-09-22 18:16 vxworks5-master\target\h\arch\ppc\
文件 30011 2014-09-22 18:16 vxworks5-master\target\h\arch\ppc\ppc403.h
目录 0 2014-09-22 18:16 vxworks5-master\target\h\arch\sparc\
文件 10936 2014-09-22 18:16 vxworks5-master\target\h\arch\sparc\mb86940.h
文件 4750 2014-09-22 18:16 vxworks5-master\target\h\cbioLib.h
文件 2052 2014-09-22 18:16 vxworks5-master\target\h\dcacheCbio.h
文件 10623 2014-09-22 18:16 vxworks5-master\target\h\dosFsLib.h
文件 1046 2014-09-22 18:16 vxworks5-master\target\h\dpartCbio.h
目录 0 2014-09-22 18:16 vxworks5-master\target\h\drv\
目录 0 2014-09-22 18:16 vxworks5-master\target\h\drv\usb\
文件 12356 2014-09-22 18:16 vxworks5-master\target\h\drv\usb\usbAcmLib.h
文件 10125 2014-09-22 18:16 vxworks5-master\target\h\drv\usb\usbBulkDevLib.h
............此处省略1363个文件信息
相关资源
- 8548平台vxworks6.6 bsp源码
- vxworks下61850 MMS库源码
- 虚拟机上跑vxworks用的工程生成文件
- 用于ti am335x arm cortex a9的vxworksbsp源码
- vxworks设备驱动开发详解-曹桂平版
- 虚拟机上跑vxworks上做好了的vmx文件
- PowerPC VxWorks BSP 分析中文版
- vxWorks下图形界面开发工具Tilcon使用的
- vxWorks 完整源码
- T2080 vxWorks6.9 BSP
- VxWorks网络程序员指南.pdf
- VxWorks实验35个
- goahead3.6.3基于vxworks5.5移植
- 嵌入式实时操作系统VxWorks及其开发环
- VxWorks完整源代码详解
- vxworks的移植
- ios for vmware
- vxworks设备驱动开发详解曹桂平,高清
- 《嵌入式VxWorks系统开发与应用》电子
- Vxworks学习总结
- VxWorks for ARM 实验教程
- VxWorks_BSP开发人员指南
- 虚拟机跑vxworks用到的文件
- Vxworks设备驱动开发详解-曹桂平著
- Wind River Workbench Vxworks user guide
- NFS between VxWorks and Windows XP
- ZYNQ zedboard vxworks bootrom6.9, 7.0 vip镜像
- windows xp client TO vxworks FTP server
- 风河Woorkbench3.0-VxWorks6.6应用程序开发
- vxworks6.9_bsp_developers_guide
评论
共有 条评论