资源简介
VxWorks完整源代码,帮助了解VxWorks源码,适合有一定开发经验的,里面还有内核bsp开发教程。
代码片段和文件信息
/* 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 25973532 2013-07-03 17:28 vxwork_source\vxwork_src\VxWorks内核、设备驱动与BSP开发详解.PDF
文件 13222387 2010-01-27 15:19 vxwork_source\vxwork_src\VxWorks程序员指南_Wind+River.pdf
文件 7906 2002-03-03 08:48 vxwork_source\vxwork_src\vxwork_src\target\config\comps\src\dosfs2\usrAta.c
文件 3027 2001-09-29 12:28 vxwork_source\vxwork_src\vxwork_src\target\config\comps\src\dosfs2\usrFd.c
文件 9709 2002-03-09 03:08 vxwork_source\vxwork_src\vxwork_src\target\config\comps\src\usrSmObj.c
文件 4984 2001-02-10 08:47 vxwork_source\vxwork_src\vxwork_src\target\config\comps\src\usrVxFusion.c
文件 1545 2002-03-14 23:34 vxwork_source\vxwork_src\vxwork_src\target\config\comps\vxWorks\01vxmp.cdf
文件 1857 2001-02-10 08:47 vxwork_source\vxwork_src\vxwork_src\target\config\comps\vxWorks\02vxfusion.cdf
文件 4383 2002-07-11 03:31 vxwork_source\vxwork_src\vxwork_src\target\config\comps\vxWorks\10bsp.cdf
文件 5942 2002-03-28 08:28 vxwork_source\vxwork_src\vxwork_src\target\config\comps\vxWorks\10dosfs2.cdf
文件 2905 2002-04-02 04:11 vxwork_source\vxwork_src\vxwork_src\target\config\Makefile
文件 30011 2002-06-14 10:03 vxwork_source\vxwork_src\vxwork_src\target\h\arch\ppc\ppc403.h
文件 10936 1994-12-14 04:49 vxwork_source\vxwork_src\vxwork_src\target\h\arch\sparc\mb86940.h
文件 4750 2001-09-29 12:28 vxwork_source\vxwork_src\vxwork_src\target\h\cbioLib.h
文件 2052 2002-03-09 11:44 vxwork_source\vxwork_src\vxwork_src\target\h\dcacheCbio.h
文件 10623 2002-03-09 11:43 vxwork_source\vxwork_src\vxwork_src\target\h\dosFsLib.h
文件 1046 2001-09-29 12:29 vxwork_source\vxwork_src\vxwork_src\target\h\dpartCbio.h
文件 12356 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbAcmLib.h
文件 10125 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbBulkDevLib.h
文件 8726 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbCbiUfiDevLib.h
文件 8942 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbHcd.h
文件 876 2000-12-04 16:32 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbHcdOhciLib.h
文件 915 2000-12-04 16:31 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbHcdUhciLib.h
文件 3444 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbKeyboardLib.h
文件 9011 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbKlsiEnd.h
文件 3430 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbMouseLib.h
文件 7728 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbNC1080End.h
文件 18969 2000-12-04 16:32 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbOhci.h
文件 10179 2002-04-26 18:10 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbPegasusEnd.h
文件 3618 2001-10-04 09:50 vxwork_source\vxwork_src\vxwork_src\target\h\drv\usb\usbPrinterLib.h
............此处省略2784个文件信息
- 上一篇:Ceph Cookbook 第二版
- 下一篇:复杂网络及其应用
相关资源
- vxWorks程序员速查手册.pdf
- VxWorks源码
- VxWorks程序员指南_Wind+River.pdf
- windml2.0.3
- VxWorks高级程序设计.zip
- vxWorks学习资料,适合初学者
- VxWorks的图形界面开发工具Zinc6.0的升级
- VxWorks内核、设备驱动与BSP开发详(第
- VxWorks程序员指南 WindRiver
- VxWorks程序员指南.pdf
- 基于VxWorks的嵌入式系统及实验.pdf
- VxWorks内核、设备驱动与BSP开发详解
- Wind River Workbench 3.0 for ARM part7
- vxWorks官方资料 相当全,主要6.6的各种
- Wind River vxworks for ppc 6.6.part2.rar
- Tornado.2.2.1_VxWorks.5.5.1.for.PowerPC part1.
- vxworks-7.0中文文档.7z
- Vxworks在虚拟机Vmware10运行包
- Wind River vxworks for ppc 6.6.part5.rar
- Wind River vxworks for ppc 6.6.part1.rar
- 风河Workbench3.0_VxWorks6.6应用程序开发使
- Wind River vxworks for ppc 6.6.part4.rar
- Wind River vxworks for ppc 6.6.part3.rar
- vxworks在S3C2440上的移植
- Vxworks下UDP收发与组播收发例程源码
- S3C44b0上移植vxworks操作系统的bsp
- Vxworks7.0.txt
- VxWorks下串口通信程序
- PowerPC / vxWorks 一
- vxworks培训学习资料
评论
共有 条评论