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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usrconfig.c

?? mpc5200 for bsp,it is have passed built.
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* usrConfig.c - user-defined system configuration library *//*DESCRIPTIONThis library is the WRS-supplied configuration module for VxWorks.  Itcontains the root task, the primary system initialization routine, thenetwork initialization routine, and the clock interrupt routine.The include file config.h includes a number of system-dependent parameters usedin this file.In an effort to simplify the presentation of the configuration of vxWorks,this file has been split into smaller files.  These additional configurationsource files are located in ../../src/config/usr[xxx].c and are #included intothis file below.  This file contains the bulk of the code a customer islikely to customize.The module usrDepend.c contains checks that guard against unsupportedconfigurations such as INCLUDE_NFS without INCLUDE_RPC.  The moduleusrKernel.c contains the core initialization of the kernel which is rarelycustomized, but provided for information.  The module usrNetwork.c nowcontains all network initialization code.  Finally, the module usrExtra.ccontains the conditional inclusion of the optional packages selected inconfigAll.h.The source code necessary for the configuration selected is entirelyincluded in this file during compilation as part of a standard build inthe board support package.  No other make is necessary.INCLUDE FILES:config.hSEE ALSO:.tG "Getting Started, Cross-Development"*/#include "vxWorks.h"			/* always first */#include "config.h"			/* board support configuration header */#include "usrConfig.h"			/* general configuration header */#ifdef INCLUDE_USB    #include "usbPciStub.c" #endif#ifdef INCLUDE_OHCI_INIT    #include "usrUsbHcdOhciInit.c"#endif#ifdef INCLUDE_USB_INIT    #include "../comps/src/usrUsbInit.c"#endif#ifdef INCLUDE_USB_MS_CBI_INIT    #include "../comps/src/usrUsbCbiUfiDevInit.c"#endif#ifdef INCLUDE_OHCI_PCI_INIT    #include "../comps/src/usrUsbPciOhciInit.c"#endif#ifdef INCLUDE_USBTOOL    #include "../comps/src/usrUsbTool.c"#endif#ifdef INCLUDE_SELF_SHELL#include "shell.c"#endif#include "usrKernel.c"			/* kernel configuration */#include "usrExtra.c"			/* conditionally included packages */extern 	void usrShell(void);#if CPU==SIMNTextern int simUpMutex;extern int win_ReleaseMutex(int hMutex);#endif#ifdef INCLUDE_HTTP#include "http/httpLib.h"		/* Wind Web Server interfaces */#endif#ifdef INCLUDE_COMextern int comLibInit ();#endif#ifdef INCLUDE_DCOMextern 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	0x5a5ac3c3LOCAL volatile UINT32	trapValue1	= TRAP_VALUE_1;LOCAL volatile UINT32	trapValue2	= TRAP_VALUE_2;/********************************************************************************* 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 */;	}    #if	(CPU_FAMILY == SPARC)    excWindowInit ();				/* SPARC window management */#endif#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 */#ifdef  INCLUDE_CACHE_SUPPORT    /*     * SPR 73609:  If a cache is not to be enabled, don't require     * its mode to be defined.  Instead, default it to disabled.     */# if (!defined(USER_D_CACHE_ENABLE) && !defined(USER_D_CACHE_MODE))#  define USER_D_CACHE_MODE CACHE_DISABLED# endif	/* !USER_D_CACHE_ENABLE && !USER_D_CACHE_MODE */# if (!defined(USER_I_CACHE_ENABLE) && !defined(USER_I_CACHE_MODE))#  define USER_I_CACHE_MODE CACHE_DISABLED# endif	/* !USER_I_CACHE_ENABLE && !USER_I_CACHE_MODE */    cacheLibInit (USER_I_CACHE_MODE, USER_D_CACHE_MODE);#endif  /* INCLUDE_CACHE_SUPPORT */#if	CPU_FAMILY!=SIMNT && CPU_FAMILY!=SIMSPARCSUNOS && CPU_FAMILY!=SIMHPPA && CPU_FAMILY!=SIMSPARCSOLARIS    /* don't assume bss variables are zero before this call */    bzero (edata, end - edata);		/* zero out bss variables */#endif	/* CPU_FAMILY!=SIMNT && CPU_FAMILY!=SIMSPARCSUNOS && CPU_FAMILY!=SIMHPPA && CPU_FAMILY!=SIMSPARCSOLARIS */#if (CPU_FAMILY == PPC)    /*     * Immediately after clearing the bss, ensure global stdin     * etc. are ERROR until set to real values.  This is used in     * target/src/arch/ppc/excArchLib.c to improve diagnosis of     * exceptions which occur before I/O is set up.     */    ioGlobalStdSet (STD_IN,  ERROR);    ioGlobalStdSet (STD_OUT, ERROR);    ioGlobalStdSet (STD_ERR, ERROR);#endif  /* CPU_FAMILY == PPC */    sysStartType = startType;			/* save type of system start */	/* for Scorpion CP2 board vector base address need to be changed */    if (VEC_BASE_ADRS == (char *)_PPC_EXC_VEC_BASE_HIGH)		{		_func_intVecBaseGetRtn = excVecBaseGet;		_func_intVecBaseSetRtn = excVecBaseSet;		}    intVecBaseSet ((FUNCPTR *) VEC_BASE_ADRS);	/* set vector base table */#if (CPU_FAMILY == AM29XXX)    excSpillFillInit ();			/* am29k stack cache managemt */#endif#ifdef  INCLUDE_EXC_HANDLING# if (CPU_FAMILY == PPC) && defined(INCLUDE_EXC_SHOW)    /*     * Do this ahead of excVecInit() to set up _func_excPanicHook, in case     * the enabling of Machine Check there allows a pending one to occur.     * excShowInit() will be called again later, harmlessly.     */    excShowInit ();# endif  /* CPU_FAMILY == PPC && defined(INCLUDE_EXC_SHOW) */    excVecInit ();				/* 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#ifdef  INCLUDE_CACHE_SUPPORT#ifdef 	USER_I_CACHE_ENABLE    cacheEnable (INSTRUCTION_CACHE);		/* enable instruction cache */#endif	/* USER_I_CACHE_ENABLE */#ifdef	USER_D_CACHE_ENABLE    cacheEnable (DATA_CACHE);			/* enable data cache */#endif 	/* USER_D_CACHE_ENABLE */#if (CPU == MC68060)#ifdef 	USER_B_CACHE_ENABLE    cacheEnable (BRANCH_CACHE);			/* enable branch cache */#endif	/* USER_B_CACHE_ENABLE */#endif	/* (CPU == MC68060) */#endif  /* INCLUDE_CACHE_SUPPORT */    /* 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 */#if	defined(INCLUDE_MMU_BASIC) || defined(INCLUDE_MMU_FULL) || \	defined(INCLUDE_MMU_MPU)    usrMmuInit ();				/* initialize the mmu */#endif	/* defined(INCLUDE_MMU_BASIC, INCLUDE_MMU_FULL, INCLUDE_MMU_MPU) */    /* set up system timer */    sysClkConnect ((FUNCPTR) usrClock, 0);	/* connect clock ISR */    sysClkRateSet (SYS_CLK_RATE);	/* set system clock rate */    sysClkEnable ();				/* start it */#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_TYCODRV_5_2#ifdef  INCLUDE_TTY_DEV    if (NUM_TTY > 0)	{	tyCoDrv ();				/* install console driver */	for (ix = 0; ix < NUM_TTY; ix++)	/* create serial devices */	    {	    sprintf (tyName, "%s%d", "/tyCo/", ix);	    (void) tyCoDevCreate (tyName, ix, 512, 512);	    if (ix == CONSOLE_TTY)		strcpy (consoleName, tyName);	/* store console name */	    }	consoleFd = open (consoleName, O_RDWR, 0);	/* set baud rate */	(void) ioctl (consoleFd, FIOBAUDRATE, CONSOLE_BAUD_RATE);	(void) ioctl (consoleFd, FIOSETOPTIONS, OPT_TERMINAL);	}#endif	/* INCLUDE_TTY_DEV */#else   /* !INCLUDE_TYCODRV_5_2 */#ifdef  INCLUDE_TTY_DEV    if (NUM_TTY > 0)	{	ttyDrv();				/* install console driver */	for (ix = 0; ix < NUM_TTY; ix++)	/* create serial devices */	    {#if     (defined(INCLUDE_WDB) && (WDB_COMM_TYPE == WDB_COMM_SERIAL))	    if (ix == WDB_TTY_CHANNEL)		/* don't use WDBs channel */		continue;#endif	    sprintf (tyName, "%s%d", "/tyCo/", ix);	    (void) ttyDevCreate (tyName, sysSerialChanGet(ix), 512, 512);	    if (ix == CONSOLE_TTY)		/* init the tty console */		{		strcpy (consoleName, tyName);		consoleFd = open (consoleName, O_RDWR, 0);		(void) ioctl (consoleFd, FIOBAUDRATE, CONSOLE_BAUD_RATE);		(void) ioctl (consoleFd, FIOSETOPTIONS, OPT_TERMINAL);		}	    }	}#endif  /* INCLUDE_TTY_DEV */#ifdef INCLUDE_PC_CONSOLE    pcConDrv ();    for (ix = 0; ix < N_VIRTUAL_CONSOLES; ix++)	{	sprintf (tyName, "%s%d", "/pcConsole/", ix);	(void) pcConDevCreate (tyName,ix, 512, 512);	if (ix == PC_CONSOLE)		/* init the console device */	    {	    strcpy (consoleName, tyName);	    consoleFd = open (consoleName, O_RDWR, 0);	    (void) ioctl (consoleFd, FIOBAUDRATE, CONSOLE_BAUD_RATE);	    (void) ioctl (consoleFd, FIOSETOPTIONS, OPT_TERMINAL);	    }	}#endif	/* INCLUDE_PC_CONSOLE */#endif  /* !INCLUDE_TYCODRV_5_2 */    ioGlobalStdSet (STD_IN,  consoleFd);    ioGlobalStdSet (STD_OUT, consoleFd);    ioGlobalStdSet (STD_ERR, consoleFd);#endif  /* INCLUDE_IO_SYSTEM */    /* initialize symbol table facilities */#ifdef	INCLUDE_SYM_TBL    hashLibInit ();			/* initialize hash table package */    symLibInit ();			/* initialize symbol table package */#ifdef 	INCLUDE_SHOW_ROUTINES

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲污的网站| 91福利在线免费观看| 欧美在线一二三| 国产精品乱人伦中文| 国产精品88av| 91精品国产一区二区| 五月天久久比比资源色| 91久久国产最好的精华液| 久久色视频免费观看| 另类小说一区二区三区| 欧美国产一区视频在线观看| 国产精品福利一区| 国产麻豆91精品| 欧美日韩夫妻久久| 亚洲午夜一区二区| 欧美区视频在线观看| 日韩高清中文字幕一区| 99精品久久只有精品| 一色桃子久久精品亚洲| 99精品热视频| 国产精品国产自产拍高清av | 日韩电影免费一区| 欧美欧美午夜aⅴ在线观看| 亚瑟在线精品视频| 日韩一区二区在线观看视频| 精品一区二区影视| 国产日韩亚洲欧美综合| 不卡视频在线看| 亚洲欧美日韩在线不卡| 欧美日韩一区二区不卡| 免费观看30秒视频久久| 久久精品免视看| 91麻豆123| 日本三级韩国三级欧美三级| 国产日韩视频一区二区三区| 91原创在线视频| 视频精品一区二区| 久久精品夜色噜噜亚洲aⅴ| a亚洲天堂av| 亚洲图片欧美色图| 精品理论电影在线观看 | 国产乱码精品1区2区3区| 中文字幕在线视频一区| 欧美系列日韩一区| 久久国产免费看| 亚洲人成亚洲人成在线观看图片| 精品污污网站免费看| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品毛片a∨一区二区三区 | 亚洲乱码日产精品bd| 欧美高清精品3d| 成人黄色在线看| 日韩精品成人一区二区三区| 中文一区二区在线观看| 欧美日韩视频在线第一区 | 欧美日韩一区二区在线视频| 久久精品72免费观看| 亚洲欧美影音先锋| 日韩精品专区在线影院观看 | 欧美日韩不卡视频| 成人免费黄色在线| 日韩精品欧美精品| 最新成人av在线| 精品捆绑美女sm三区| 欧美视频在线不卡| 成人综合日日夜夜| 免费久久99精品国产| 亚洲视频网在线直播| 久久在线观看免费| 欧美日本免费一区二区三区| 成人免费精品视频| 黄色精品一二区| 偷偷要91色婷婷| 综合久久久久综合| 国产人久久人人人人爽| 日韩欧美一级特黄在线播放| 欧美性欧美巨大黑白大战| 国产激情精品久久久第一区二区| 日韩高清在线观看| 亚洲黄色性网站| 亚洲欧美在线另类| 国产日韩欧美精品一区| 日韩精品一区在线| 欧美高清激情brazzers| 欧洲在线/亚洲| av网站免费线看精品| 国产精品亚洲第一| 精品一区二区三区免费观看| 欧美96一区二区免费视频| 亚洲成av人综合在线观看| 一区二区三区不卡视频在线观看| 一色屋精品亚洲香蕉网站| 久久精品视频网| 久久久久九九视频| 久久午夜色播影院免费高清| 精品人在线二区三区| 日韩视频一区二区三区在线播放| 欧美电影一区二区| 欧美一区二区三区啪啪| 欧美理论电影在线| 欧美男男青年gay1069videost | 亚洲成人手机在线| 亚洲人成人一区二区在线观看| 中文在线免费一区三区高中清不卡| 国产亚洲欧美中文| 国产午夜精品美女毛片视频| 精品国偷自产国产一区| 精品国产一区二区精华| 久久影院视频免费| 国产女同性恋一区二区| 国产精品蜜臀在线观看| 中文字幕在线观看一区| 亚洲黄色av一区| 亚洲五月六月丁香激情| 亚洲国产精品久久不卡毛片| 日韩精品一二三| 韩日av一区二区| 高清不卡在线观看av| 成人高清视频免费观看| 日本道免费精品一区二区三区| 欧美美女视频在线观看| 欧美一区二区三区免费大片| 日韩一级片在线观看| 久久久国产综合精品女国产盗摄| 国产精品女人毛片| **欧美大码日韩| 一区二区三区精品在线| 欧美aaaaaa午夜精品| 久久精品国产秦先生| 国内偷窥港台综合视频在线播放| 国产一区二区看久久| 国产精品一区在线观看乱码| 91在线高清观看| 日韩欧美一区二区免费| 国产精品毛片久久久久久久| 综合分类小说区另类春色亚洲小说欧美 | 91尤物视频在线观看| 欧美日韩黄色影视| 国产午夜精品久久久久久免费视 | 欧美xxxx在线观看| 久久久综合九色合综国产精品| 有码一区二区三区| 国内久久精品视频| 91久久奴性调教| 久久伊99综合婷婷久久伊| 亚洲欧美视频在线观看视频| 蜜臀91精品一区二区三区| 成人精品视频一区| 6080亚洲精品一区二区| 中文字幕在线一区免费| 麻豆专区一区二区三区四区五区| 成人毛片视频在线观看| 日韩欧美精品在线| 亚洲精品ww久久久久久p站| 国模无码大尺度一区二区三区| 在线观看亚洲专区| 欧美高清在线精品一区| 日韩精品久久理论片| 一本久久a久久免费精品不卡| 久久久久久一二三区| 日韩二区三区四区| 在线精品视频一区二区三四| 国产精品区一区二区三区| 麻豆精品视频在线观看视频| 欧日韩精品视频| 自拍偷拍欧美精品| 蜜桃视频一区二区三区在线观看| 在线精品视频小说1| 国产精品―色哟哟| 狠狠网亚洲精品| 在线不卡中文字幕播放| 日本一区二区视频在线| 激情五月婷婷综合| 欧美日韩国产色站一区二区三区| 日韩一区在线看| 国产成人一级电影| 91精品在线麻豆| 亚洲成人精品一区二区| 色中色一区二区| 1000部国产精品成人观看| 精品一二三四在线| 欧美日韩国产大片| 亚洲国产精品久久久久秋霞影院| 色狠狠桃花综合| 亚洲男帅同性gay1069| 91麻豆国产香蕉久久精品| 中文字幕在线不卡| 成人小视频免费观看| 欧美精品一区二区不卡| 极品销魂美女一区二区三区| 日韩精品一区二区三区中文不卡| 三级在线观看一区二区 | 欧美一区二区三区视频在线观看| 亚洲精品久久7777| 成人理论电影网| 久久久精品日韩欧美| 蜜桃av一区二区在线观看| 精品国产91洋老外米糕| 国产精品亚洲午夜一区二区三区 | 亚洲国产精品精华液2区45|