亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? usrconfig.c

?? 菲利普22系列 vxworks bsp 可以用來可以和其他版本的ARM vxworks bsp(特別是7內(nèi)核的進行比較)進行比較可以加深對BSP的理解和掌握
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* usrConfig.c - user-defined system configuration library */

/* Copyright 1984-2002 Wind River Systems, Inc. */
#include "copyright_wrs.h"
#include "lpc2210.h"
#include "mytypes.h"

/*
modification history
--------------------
19x,12nov02,dbt  Reworked symbol table synchronization initialization code
                 (SPR #25509).
19w,15may02,sbs  changing default sys clock rate to a macro (SPR #1918)
19v,24apr02,j_s  make WDB Banner the same as in
                 target/config/comps/src/usrWdbBanner.c (SPR #76099)
		 updated 2001 to 2002
19u,19apr02,pch  SPR 74348: Enable PPC Machine Check exception ASAP
19t,05apr02,hbh  Fixed SPR# 30368 and improved ntPassFs initialization.
19s,04mar02,pch  SPR 73609
19r,11feb02,jkf  SPR#73173, adding INCLUDE_DOSFS_MAIN init section.
19q,21jan02,sn   added INCLUDE_CTORS_DTORS
19p,10dec01,jlb  Change UGL to WindML product
19o,07dec01,wef  add USB initialization code.
19n,07dec01,sn   added INCLUDE_CPLUS_DEMANGLER
19m,08nov01,jmp  removed useless routeAdd() for SIMNT.
19l,31oct01,gls  added pthread code
19k,27oct01,dat  Adding trap for misaligned data section SPR 9006
19j,21sep01,aeg  updated initialization sequence of selectLib (SPR #31319).
19i,17sep01,pcm  added excShowInit() (SPR 7333), and lstLibInit () (SPR 20698)
19h,15may01,pch  Move call of usrAltivecInit() from sysLib.c to usrConfig.c,
                 to fix an undefined reference when building bootrom.
19g,20jan99,dbs  change VXCOM to COM
19f,18dec98,dbs  add VXCOM as separate item
19e,06nov98,dbs  add DCOM init when INCLUDE_DCOM is set
19g,22feb01,scm  add fast dram support capabilities for XScale...
19f,16mar99,jpd  changed copyright yearfrom 1998 to 1999.
19j,27feb01,hk   update INCLUDE_WDB_BANNER copyright notice to cover 2001.
19i,08jun00,csi  Merginf usrConfig.c for vxfusion
19h,19apr00,zl   updated copyright year to 2000.
19g,02mar00,zl   merged SH support into T2.
01g,07mar01,sn   simplify job of host val by using creationDate (which
                 is overridable) rather than __DATE__
19g,14oct99,jk   added conditional init code for sound driver support.
19i,30jul99,jkf  fixed SPR#4429. ideDrv, ataDrv, fdDrv, warn on ERROR.
19h,16mar99,jpd  changed copyright yearfrom 1998 to 1999.
19g,10mar99,drm  Changing WINDMP to VXFUSION to reflect new product name.
19e,08oct98,rlp  added support for UGL and HTML.
19d,17sep98,ms   call cplusDemanglerInit if INCLUDE_CPLUS and INCLUDE_LOADER
19c,17sep98,cym  added code to calculate proper IP address for PCSIM.
19b,01sep98,drm  added code to initialize WindMP
19a,10aug98,cym  added code to inform tornado when the NT simulator is up.
18z,23apr98,yp   merged in TrueFFS support
18y,22apr98,elp  created group 1 module when standalone (fixed SPR# 20301).
18w,22apr98,hdn  added comment for tffsDrv().
18t,17apr98,nps  added support for rBuffShow.
18s,09mar98,sjw  merge in HTTP and JAVA changes for conflict resolution
18r,18dec97,cth  replaced windview, timestamp initialization with windviewConfig
18q,13nov97,cth  changed WV evtInstInit to wvLibInit2; removed connRtnSet,
		 evtTaskInit; added include wvLib.h, rBuffLib.h
18p,18aug97,nps  changed WV buffer initialization with the rBuff API.
18x,06mar98,ms   changed copyright year from 1996 to 1998.
18v,04feb98,jpd  fix unsigned/signed warning (usrRoot); updated copyright date.
18u,25feb98,jgn  removed call to excShowInit(), it is called by excInit()
                 if needed (SPR #20625)
18t,19jan98,hdn  changed a condition macro to include tffsDrv().
18p,06jan98,cym  added SIMNT as processor not to clear bss.
18s,23sep97,yp   added support for TFFS.
18r,13aug97,cdp  add Thumb (ARM7TDMI_T) support;
                 'fix' unsigned/signed comparison in usrRoot.
18q,26feb97,dat  added INCLUDE_USER_APPL and USER_APPL_INIT, spr 8071.
18p,05feb97,cdp  remove ARM test hook (_func_armStartup).
18o,12dec96,cdp  added _func_armStartup for ARM platforms.
18n,13dec96,elp	 changed syncLibInit() into symSyncLibInit().
18m,18nov96,dds  SPR 2529: return status for sysScsiInit is now checked.
18l,06nov96,ms   removed 17n hack to usrClock.
18k,01nov96,hdn  added support for PCMCIA.
18j,21oct96,hdn  changed paramerters for new LPT driver.
18i,04oct96,elp  added INCLUDE_SYM_TBL_SYNC (SPR# 6775).
18h,11jul96,tam  changed copyright year from 1995 to 1996.
18l,19jul96,hdn  added support for ATA driver.
18k,25jun96,jmb  Eliminated alternative WDB macro names (SPR #5707).
18j,25jun96,dbt  Initialized _func_selWakeupListInit before tyLib (SPR #3314).
18i,21jun96,jmb  update copyright. SPR #6364
18h,21jun96,jmb  long modhist -- deleted entries prior to 1994.  SPR #6528
18g,12mar96,tam  removed all #if (CPU == PPC403).
18p,06jun96,ism  bumped copyright to 1996.
18o,26jan96,ism  cleaned up vxsim/solaris version
18f,02oct95,kvk  added sysHwInit2() for PPC603.
18e,27sep95,tpr  removed #if (CPU_FAMILY != PPC) staff.
18n,07nov95,srh  fixed C++ support comments.
18m,29oct95,dat  fixed warnings about printf arguments
18l,11oct95,jdi  doc: changed .pG to .tG.
18k,10oct95,dat	 new BSP revision id. Added WDB Banner printing
18j,15jun95,ms	 updated for new serial drivers.
18i,09jun95,ms	 cleaned up console initialization
18h,30may95,p_m  added initialization of formatted I/O library.
		 replaced spyStop() by spyLibInit().
18g,22may95,p_m  no longer initialize object format specific libraries if
		 loader is not included.
18f,22may95,myz  modified new serial device initialization for x86 support
18e,22may95,ms   added some WDB agent support
18e,30oct95,ism  updated for SIMSPARCSOLARIS
18d,28mar95,kkk  added scalability support, changed edata and end to arrays
		 (SPR #3917), changed baud rate to be a macro in configAll.h
18g,25may95,yao  changed to bzero bss segment for PPC.
18f,04apr95,caf  added PPC cache support.
18e,03mar95,yao  added shsHwInit2 () for PPC403.
18d,24feb95,caf  added PPC support.
18c,20nov94,kdl  added hashLibInit() when using dosFs.
18b,09nov94,jds  additions for scsi backward compatability ; scsi[12]IfInit()
18a,04nov94,kdl	 merge cleanup.
17l,02aug94,tpr  added cacheEnable (BRANCH_CACHE) for the MC68060.
17m,15oct94,hdn  added LPT driver.
17o,20jul94,ms   changed INCLUDE_AOUT_HPPA to INCLUDE_SOM_COFF
17n,02may94,ms   added VxSim HP hack to usrClock().
17q,15mar94,smb  renamed tEvtTask parameters.
17p,15feb94,smb  defined WV_MODE, EVTBUFFER_ADDRESS for wvInstInit().
17o,12jan94,kdl  modified posix initialization; added queued signal init.
*/

/*
DESCRIPTION
This library is the WRS-supplied configuration module for VxWorks.  It
contains the root task, the primary system initialization routine, the
network initialization routine, and the clock interrupt routine.

The include file config.h includes a number of system-dependent parameters used
in this file.

In an effort to simplify the presentation of the configuration of vxWorks,
this file has been split into smaller files.  These additional configuration
source files are located in ../../src/config/usr[xxx].c and are #included into
this file below.  This file contains the bulk of the code a customer is
likely to customize.

The module usrDepend.c contains checks that guard against unsupported
configurations such as INCLUDE_NFS without INCLUDE_RPC.  The module
usrKernel.c contains the core initialization of the kernel which is rarely
customized, but provided for information.  The module usrNetwork.c now
contains all network initialization code.  Finally, the module usrExtra.c
contains the conditional inclusion of the optional packages selected in
configAll.h.

The source code necessary for the configuration selected is entirely
included in this file during compilation as part of a standard build in
the board support package.  No other make is necessary.

INCLUDE FILES:
config.h

SEE ALSO:
.tG "Getting Started, Cross-Development"
*/

#include "vxWorks.h"			/* always first */
#include "config.h"			/* board support configuration header */
#include "usrConfig.h"			/* general configuration header */
#include "usrDepend.c"			/* include dependency rules */
#include "usrKernel.c"			/* kernel configuration */
#include "usrExtra.c"			/* conditionally included packages */

#if CPU==SIMNT
extern int simUpMutex;
extern int win_ReleaseMutex(int hMutex);
#endif

#ifdef INCLUDE_HTTP
#include "http/httpLib.h"		/* Wind Web Server interfaces */
#endif

#ifdef INCLUDE_COM
extern int comLibInit ();
#endif

#ifdef INCLUDE_DCOM
extern int dcomLibInit ();
#endif

/* defines - must be after include of usrDepend.c */

#ifdef	INCLUDE_WDB
#define FREE_MEM_START_ADRS (FREE_RAM_ADRS + WDB_POOL_SIZE)
#else
#define FREE_MEM_START_ADRS FREE_RAM_ADRS
#endif

#ifdef	INCLUDE_INITIAL_MEM_ALLOCATION
#define MEM_POOL_START_ADRS \
	    (ROUND_UP(FREE_MEM_START_ADRS, (INITIAL_MEM_ALIGNMENT)) + \
	    (INITIAL_MEM_SIZE))
#else	/* INCLUDE_INITIAL_MEM_ALLOCATION */
#define MEM_POOL_START_ADRS FREE_MEM_START_ADRS
#endif	/* INCLUDE_INITIAL_MEM_ALLOCATION */


/* global variables */

int		consoleFd;		/* fd of initial console device */
char		consoleName[20];	/* console device name, eg. "/tyCo/0" */
SYMTAB_ID	statSymTbl;		/* system error status symbol table id*/
SYMTAB_ID	standAloneSymTbl;	/* STANDALONE version symbol table id */
SYMTAB_ID	sysSymTbl;		/* system symbol table id */
BOOT_PARAMS	sysBootParams;		/* parameters from boot line */
int		sysStartType;		/* type of boot (WARM, COLD, etc) */

/* Two magic cookies used to detect data section misalignment */

#define TRAP_VALUE_1	0x12348765
#define TRAP_VALUE_2	0x5a5ac3c3
LOCAL volatile UINT32	trapValue1	= TRAP_VALUE_1;
LOCAL volatile UINT32	trapValue2	= TRAP_VALUE_2;

void lpc2210ExcVecInit();
      
/*******************************************************************************
*
* usrInit - user-defined system initialization routine
*
* This is the first C code executed after the system boots.  This routine is
* called by the assembly language start-up routine sysInit() which is in the
* sysALib module of the target-specific directory.  It is called with
* interrupts locked out.  The kernel is not multitasking at this point.
*
* This routine starts by clearing BSS; thus all variables are initialized to 0,
* as per the C specification.  It then initializes the hardware by calling
* sysHwInit(), sets up the interrupt/exception vectors, and starts kernel
* multitasking with usrRoot() as the root task.
*
* RETURNS: N/A
*
* SEE ALSO: kernelLib
*
* ARGSUSED0
*/

void usrInit
    (
    int startType
    )
{
    /*
     * This trap will catch improper loading of the data section.
     * We check the magic cookie values to make sure the data section is
     * in the expected memory location. We do not want
     * to proceed further if the data segment is not correct.
     *
     * It should be easy to detect entry into the trap using an ICE, JTAG,
     * or logic analyzer. Without the trap, the processor is likely to run
     * away out of control.
     *
     * Data section misalignment can occur when there is a change in tool
     * chain, build rules, compiler, host utilites,  etc. 
     */

    while (trapValue1 != TRAP_VALUE_1 || trapValue2 != TRAP_VALUE_2)
    {
	/* infinite loop */;
    }
    
#ifdef INCLUDE_SYS_HW_INIT_0
    /*
     * Perform any BSP-specific initialisation that must be done before
     * cacheLibInit() is called and/or BSS is cleared.
     */

    SYS_HW_INIT_0 ();
#endif /* INCLUDE_SYS_HW_INIT_0 */

    /* configure data and instruction cache if available and leave disabled */
#if 0       
    /* no need to zero bss, since this is a rom res image bss has already been cleared in romStart */
    bzero (edata, end - edata);		/* zero out bss variables */
#endif
    sysStartType = startType;			/* save type of system start */
#if 0
    intVecBaseSet ((FUNCPTR *) VEC_BASE_ADRS);	/* set vector base table */
#endif



#ifdef  INCLUDE_EXC_HANDLING
    lpc2210ExcVecInit ();				/* install exception vectors */
#endif  /* INCLUDE_EXC_HANDLING */

    sysHwInit ();				/* initialize system hardware */

    usrKernelInit ();				/* configure the Wind kernel */

#ifdef INCLUDE_USB 
#   ifdef INCLUDE_OHCI_PCI_INIT
        sysUsbPciOhciInit ();
#   endif
#endif

    /* start the kernel specifying usrRoot as the root task */

    kernelInit ((FUNCPTR) usrRoot, ROOT_STACK_SIZE,
		(char *) MEM_POOL_START_ADRS,
		sysMemTop (), ISR_STACK_SIZE, INT_LOCK_LEVEL);
}

/*******************************************************************************
*
* usrRoot - the root task
*
* This is the first task to run under the multitasking kernel.  It performs
* all final initialization and then starts other tasks.
*
* It initializes the I/O system, installs drivers, creates devices, and sets
* up the network, etc., as necessary for a particular configuration.  It
* may also create and load the system symbol table, if one is to be included.
* It may then load and spawn additional tasks as needed.  In the default
* configuration, it simply initializes the VxWorks shell.
*
* RETURNS: N/A
*/
void usrRoot
    (
    char *	pMemPoolStart,		/* start of system memory partition */
    unsigned	memPoolSize		/* initial size of mem pool */
    )
    {
    char tyName [20];
    int  ix;

    /* Initialize the memory pool before initializing any other package.
     * The memory associated with the root task will be reclaimed at the
     * completion of its activities.
     */
#ifdef INCLUDE_MEM_MGR_FULL
    memInit (pMemPoolStart, memPoolSize);	/* initialize memory pool */
#else
    memPartLibInit (pMemPoolStart, memPoolSize);/* initialize memory pool */
#endif /* INCLUDE_MEM_MGR_FULL */

#ifdef	INCLUDE_SHOW_ROUTINES
    memShowInit ();				/* initialize memShow routine */
#endif	/* INCLUDE_SHOW_ROUTINES */

    /* set up system timer */
    sysClkConnect ((FUNCPTR)usrClock, 0);	/* connect clock ISR */
    sysClkRateSet (SYS_CLK_RATE);	/* set system clock rate */
    sysClkEnable ();				/* start it */

    intEnable(INT_LVL_EXTINT3);     /* enable extint3 interrupt */
    intEnable(INT_LVL_TIMER0);    
    
#ifdef INCLUDE_FAST_DRAM
/*
 * make use of data cache as fast DRAM,
 * establish parameters in config.h, MMU
 * must be initialed before data cache is
 * initialized as data ram...
 */
  cacheCreateInternalDataRAM((UINT32 *)FD_ORIGIN, FD_NUMLINES);
#endif

    /*
     * The select library needs to be initialized before the tyLib module
     * since the _func_selWakeupListInit FUNCPTR is required (SPR #3314).
     * The installation of the select task delete hooks is performed
     * later in usrRoot() after NFS and RPC have been initialized.
     */

#ifdef  INCLUDE_SELECT
    selectInit (NUM_FILES);
#endif	/* INCLUDE_SELECT */


    /* initialize I/O system */

#ifdef  INCLUDE_IO_SYSTEM
    iosInit (NUM_DRIVERS, NUM_FILES, "/null");

    consoleFd = NONE;                           /* assume no console device */

#ifdef  INCLUDE_TTY_DEV
    if (NUM_TTY > 0)
	{
	ttyDrv();				/* install console driver */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
666欧美在线视频| 欧洲一区二区三区在线| 欧美日韩精品福利| 欧美韩日一区二区三区四区| 丝袜诱惑制服诱惑色一区在线观看 | 一本久道久久综合中文字幕| 欧美精品一区二区三区在线播放| 亚洲综合一区二区精品导航| 成人精品视频一区| 精品国产乱码久久久久久夜甘婷婷| 一区二区三区高清不卡| 成人永久aaa| 精品va天堂亚洲国产| 日韩精品久久理论片| 在线观看av一区| 亚洲色图在线播放| 懂色av噜噜一区二区三区av| 欧美变态tickle挠乳网站| 亚洲成人av一区二区三区| 色一情一乱一乱一91av| 欧美国产丝袜视频| 国产精品一区免费在线观看| 日韩欧美色电影| 天堂久久久久va久久久久| 欧美亚洲日本一区| 亚洲女同女同女同女同女同69| 高清shemale亚洲人妖| 久久久久久免费| 国产一区二区免费视频| 亚洲精品一区二区三区蜜桃下载| 欧美久久一二区| 亚洲一区二区三区视频在线播放 | 视频一区二区中文字幕| 一本大道久久a久久精二百| 国产精品白丝在线| 99久久综合精品| 中文字幕中文字幕一区二区| 不卡在线视频中文字幕| 国产精品每日更新在线播放网址| 懂色一区二区三区免费观看| 欧美国产一区二区| 波多野结衣在线aⅴ中文字幕不卡| 国产喷白浆一区二区三区| 国产精品主播直播| 国产视频视频一区| 成人h动漫精品一区二| 亚洲欧美在线视频观看| 99久久综合色| 亚洲一区二区视频| 欧美精品在线观看一区二区| 偷拍亚洲欧洲综合| 日韩美女视频在线| 国产在线观看免费一区| 国产亚洲欧美一级| av成人动漫在线观看| 一区二区视频在线| 欧美日韩一级二级| 蜜臀av性久久久久av蜜臀妖精| 91精品国产日韩91久久久久久| 奇米在线7777在线精品| 精品第一国产综合精品aⅴ| 国产一区二区三区不卡在线观看| 国产拍揄自揄精品视频麻豆| 99久久伊人网影院| 亚洲国产视频网站| 日韩午夜在线观看| 粉嫩一区二区三区性色av| 亚洲欧美在线高清| 欧美日韩国产一区| 久久国产精品99久久人人澡| 国产欧美日韩在线看| 色婷婷综合激情| 丝袜亚洲另类欧美| 久久这里只有精品视频网| 播五月开心婷婷综合| 午夜精品久久久久久久99水蜜桃| 欧美一区二视频| 国产成人精品www牛牛影视| 亚洲色图清纯唯美| 日韩区在线观看| 国产一区二区三区四| 1000部国产精品成人观看| 欧美日韩精品一区二区三区蜜桃 | 久久精品国产久精国产爱| 久久久精品蜜桃| 在线观看视频91| 九一久久久久久| 日韩毛片一二三区| 蜜芽一区二区三区| 国产精品网站在线| 欧美日韩精品福利| 大白屁股一区二区视频| 亚洲成人av中文| 国产人久久人人人人爽| 欧美在线高清视频| 国产成人免费视频网站| 亚洲综合色视频| 久久中文字幕电影| 欧美日韩久久久一区| 成人不卡免费av| 免费看欧美美女黄的网站| 18成人在线观看| 欧美大度的电影原声| 一本色道久久综合亚洲aⅴ蜜桃| 日本vs亚洲vs韩国一区三区| 国产精品国产三级国产aⅴ中文| 在线不卡中文字幕播放| k8久久久一区二区三区| 免费精品视频在线| 一区二区三区视频在线看| 26uuu精品一区二区三区四区在线| 色偷偷88欧美精品久久久| 国产一区高清在线| 亚洲成人自拍网| 国产精品对白交换视频| 日韩女优电影在线观看| 欧美色图在线观看| 成人av在线资源| 久久精品理论片| 五月天网站亚洲| 亚洲欧美怡红院| 久久精品亚洲麻豆av一区二区 | 99久久精品免费看| 国产精品一线二线三线精华| 欧美一级高清片在线观看| 色综合久久综合网| 成人黄色一级视频| 国产呦精品一区二区三区网站| 亚洲电影一级黄| 亚洲欧美日韩一区二区| 国产视频一区二区在线| 精品国产乱码久久久久久免费 | 不卡的看片网站| 国产sm精品调教视频网站| 久久精品av麻豆的观看方式| 亚洲bt欧美bt精品| 亚洲一区在线观看网站| 国产精品久久福利| 国产无一区二区| 欧美mv日韩mv国产网站| 日韩一区二区在线观看| 欧美日韩精品一区二区三区蜜桃| 色妞www精品视频| 色悠悠久久综合| 色国产综合视频| 色综合咪咪久久| 色综合久久久久久久久| 99精品国产热久久91蜜凸| 成人精品鲁一区一区二区| 国产成人免费9x9x人网站视频| 激情小说亚洲一区| 狠狠色2019综合网| 国产中文字幕一区| 另类欧美日韩国产在线| 蜜桃一区二区三区在线| 美女网站一区二区| 狠狠色丁香久久婷婷综合丁香| 久久精品国产99国产| 黑人巨大精品欧美一区| 加勒比av一区二区| 国产精品乡下勾搭老头1| 国产福利电影一区二区三区| 国产久卡久卡久卡久卡视频精品| 国产精品一区三区| 成人高清免费在线播放| 99久久久精品| 欧洲精品中文字幕| 欧美揉bbbbb揉bbbbb| 欧美人牲a欧美精品| 日韩欧美亚洲一区二区| 亚洲精品在线三区| 中文字幕av一区二区三区高 | 91精品国产综合久久小美女| 欧美一级一区二区| 精品va天堂亚洲国产| 国产视频一区二区在线| 亚洲欧洲一区二区三区| 亚洲激情第一区| 日韩精品一卡二卡三卡四卡无卡| 久久激情五月婷婷| 国产99久久久国产精品潘金| 99久久精品国产麻豆演员表| 亚洲成人三级小说| 裸体健美xxxx欧美裸体表演| 国产精品99久久久久久久女警 | 成人av影院在线| 91久久精品一区二区三区| 欧美丰满少妇xxxxx高潮对白| 在线综合+亚洲+欧美中文字幕| 日韩欧美区一区二| 国产精品欧美极品| 一区二区欧美精品| 麻豆精品在线看| 成人自拍视频在线观看| 欧美羞羞免费网站| 日韩欧美高清dvd碟片| 中文字幕电影一区| 亚洲电影在线免费观看| 国产呦萝稀缺另类资源| 色嗨嗨av一区二区三区|