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

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

?? vxlib.c

?? vxworks的源代碼
?? C
字號(hào):
/* vxLib.c - miscellaneous support routines *//* Copyright 1984-2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/* * This file has been developed or significantly modified by the * MIPS Center of Excellence Dedicated Engineering Staff. * This notice is as per the MIPS Center of Excellence Master Partner * Agreement, do not remove this notice without checking first with * WR/Platforms MIPS Center of Excellence engineering management. *//*modification history--------------------03e,17jan02,tlc  Remove call to sysBusTas from vxLib.c.  Add proper funct-                 ality as vxTas() is called by sysBusTas.  Add load-linked,		 store-conditional vxTas_llsc version for those CPU_FAMILIES		 which support it. (SPR #70336 fix).03d,16jul01,ros  add CofE comment03c,21dec00,pes  Adapt to MIPS32/MIPS64 CPU architectures03b,26mar97,dra  added CW4011 support.03b,04jun97,dat  added _func_vxMemProbeHook and vxMemArchProbe, SPR 8658.		 removed sysMemProbe().02z,19oct93,cd   added R4000 support.03a,29mar94,caf  improved fix for SPR #3116, updated copyright notice.02z,09mar94,caf  check for TLB mapped address in vxMemProbe() (SPR #3116).02y,14sep92,yao  changed to pass void pointer to vxTas(). changed O_RDONLY		 O_WRONLY to VX_READ and VX_WRITE.02w,08jul92,ajm  ansified02v,04jul92,jcf  scalable/ANSI/cleanup effort.02u,24jun92,ajm  added include of vxLib.c and ioLib.c for O_RDONLY and ansi02t,05jun92,ajm  5.0.5 merge, note mod history changes02s,26may92,rrr  the tree shuffle02r,14jan92,jdi  documentation cleanup.02q,04oct91,rrr  passed through the ansification filter                  -changed TINY and UTINY to INT8 and UINT8                  -changed READ, WRITE and UPDATE to O_RDONLY O_WRONLY and O_RDWR                  -changed VOID to void                  -changed copyright notice02p,06jun91,ajm  changed vxMemProbe to check if vme error mask is already		  turned on using sysMaskVmeErr		  fixed pc increment to be by 1 for pointer02o,25may91,gae  moved vxLsBitIndexTable & vxMsBitIndexTable here from sysLib.c.02n,14dec90,ajm  documentation clean up02m,13dec90,ajm  fixed vxMemProbe to handle vme bus error interrupts correctly		  got rid of vxMemIntCheck in doing so02i,23oct90,ajm  fixed register reference to call sysBusEid()02h,31jul90,ajm  removed previously saved assembler algorithm for memIntCheck02g,26jun90,rtp  now interpet address as pass by value vice pass by reference.02f,26jun90,ajm  made vector references for intVecSet, intVecGet use		  the macro INUM_TO_IVEC02e,26jun90,ajm  put init of global var status in vxMemProbe so that		  bus errors are not improperly assumed.02d,26jun90,ajm  moved vxMemProbeTrap, and vxMemIntCheck from vxALib.s02c,02may90,rtp  Made status an external so that assignment to it is 		 explicit by routines in this file AND the assembly bus error 		 exception and handler and ATE/VME level 5 interrupt status		 routines  (which affect the outcome of the memory probe).		 This file is board dependent for STAR and should be located		 appropriately.02b,01may90,rtp	 The guts of the Tas routine have been moved to sysLib.s 		 since it makes use of board specific configuration items 	 	 such as the availability of a VME read-modify-write register.		 The vxTas routine is maintained for interface compatibility.02a,23apr90,rtp  This file is now specific to the R3000. the vxTas routine 		 is now here vice vxALib.s.01g,01sep88,gae  documentation.01f,22jun88,dnw  removed include of ioLib.h.01e,05jun88,dnw  changed from kLib to vxLib.		 removed taskRegsShow(), exit(), and breakpoint rtns to taskLib.01d,30may88,dnw  changed to v4 names.01c,28may88,dnw  removed reboot to rebootLib.01b,21apr88,gae  added include of ioLib.h for READ/WRITE/UPDATE.01a,28jan88,jcf	 written and soon to be redistributed.*//*DESCRIPTIONThis module contains miscellaneous VxWorks support routines.SEE ALSO: vxALibINTERNAL:The vxMemArchProbe should not be accessing BSP specific functions.  Wehave added _func_vxMemProbeHook to do that.  This makes porting mips BSPsdifferent from porting other BSPs.  This module should not rely on sysBusEid(),sysMaskVmeErr(), sysUnmaskVmeErr(), or sysBusTas().  (note bad name choices).D'Anne, Aug 1997.*/#include "vxWorks.h"#include "vxLib.h"#include "intLib.h"#include "ioLib.h"#include "iv.h"#include "esf.h"#include "private/taskLibP.h"/* externals */IMPORT USHORT sysBusEid ();IMPORT UINT8  sysMaskVmeErr ();IMPORT UINT8  sysUnmaskVmeErr ();#ifdef _WRS_MIPS_LL_SCIMPORT BOOL   vxTas_llsc();#endifFUNCPTR	_func_vxMemProbeHook = NULL;	/* hook for BSP vxMemProbe *//* locals */LOCAL STATUS vxBerrStatus;		/* bus error global status *//* forward declarations */void vxMemProbeTrap (int vecNum, ESFMIPS *pEsf, int *regs);/********************************************************************************* vxMemArchProbe - architecture specific probe routine (MIPS)** This is the routine implementing the architecture specific part of the* vxMemProbe routine.  It traps the relevant* exceptions while accessing the specified address.** RETURNS: OK or ERROR if an exception occurred during access.*/STATUS vxMemArchProbe    (    FAST void *adrs,	/* address to be probed */    int mode,		/* VX_READ or VX_WRITE */    int length,		/* 1, 2, or 4 */    void *pVal 		/* where to return value, */			/* or ptr to value to be written */    )    {    FUNCPTR oldDBUSVec; 	/* old data bus exception handler */    UINT8   *byte_operand; 	/* for byte r/w */    USHORT  *short_operand;	/* for 16 bit r/w */    ULONG   *word_operand;	/* for 32 bit r/w */    USHORT  *spVal;		/* short holder for pVal */    ULONG   *lpVal;		/* long holder for pVal */    ULONG   oldLevel;		/* previous value of status reg */    BOOL vmeStatus;     UINT8 temp;     /* NOTE: comment says that alignment check is not done */    switch (length)	{        case 1:	    break;        case 2:	    if ((UINT)adrs & 1)		return (ERROR);	    break;        case 4:	    if ((UINT)adrs & 3)		return (ERROR);	    break;	default:	    return (ERROR);	    }    if (!(IS_KSEG0(adrs) || IS_KSEG1(adrs)))	return (ERROR);		/* TLB mapped addresses not supported */    oldLevel = intLock ();      /* lock out external ints */    vmeStatus = sysMaskVmeErr();/* lock out vme error int if not already */    vxBerrStatus = OK;		/* clear previous settings of bus error */    /* read and replace data bus error vector */    oldDBUSVec = intVecGet ((FUNCPTR *) INUM_TO_IVEC(IV_DBUS_VEC));    intVecSet ((FUNCPTR *) INUM_TO_IVEC(IV_DBUS_VEC), (FUNCPTR) vxMemProbeTrap);    /* memory probe */    switch (length)	{	case 1:	    byte_operand = (UINT8 *) adrs; 	    if (mode == VX_READ) 		*(UINT8 *)pVal = *byte_operand;	    else		*byte_operand = *(UINT8 *)pVal;	    break;	case 2:	    spVal = (USHORT *) pVal;		/* read or write short */	    short_operand = (USHORT *) adrs;	    if (mode == O_RDONLY) 		*spVal = *short_operand;	    else		*short_operand = *spVal;	    break;	case 4:	    lpVal = (ULONG *) pVal;		/* read or write long */	    word_operand = (ULONG *) adrs;	    if (mode == VX_READ) 		*lpVal = *word_operand;	    else		*word_operand = *lpVal;	    break;	default:	    break;	}    temp = (UINT8) sysBusEid();		/* clear pending vme error int if any */    if (vmeStatus == TRUE)        sysUnmaskVmeErr();		/* restore vme error interrupt */    /* replace old bus error vector and unlock */    intVecSet ((FUNCPTR *) INUM_TO_IVEC(IV_DBUS_VEC), oldDBUSVec);    intUnlock (oldLevel);		/* restore external interrupts */    return (vxBerrStatus);    }/********************************************************************************* vxMemProbe - probe an address for a bus error** This routine probes a specified address to see if it is readable or* writable, as specified by <mode>.  The address will be read or written as* 1, 2, or 4 bytes as specified by <length> (values other than 1, 2, or 4* yield unpredictable results).  If the probe is a O_RDONLY, the value read will* be copied to the location pointed to by <pVal>.  If the probe is a O_WRONLY,* the value written will be taken from the location pointed to by <pVal>.* In either case, <pVal> should point to a value of 1, 2, or 4 bytes, as* specified by <length>.** Note that only data bus errors (machine check exception,  data access * exception) are trapped during the probe, and that the access must be * otherwise valid (i.e., not generate an address error).** EXAMPLE* .CS* testMem (adrs)*    char *adrs;*    {*    char testW = 1;*    char testR;**    if (vxMemProbe (adrs, VX_WRITE, 1, &testW) == OK)*        printf ("value %d written to adrs %x\en", testW, adrs);**    if (vxMemProbe (adrs, VX_READ, 1, &testR) == OK)*        printf ("value %d read from adrs %x\en", testR, adrs);*    }* .CE** MODIFICATION* The BSP can modify the behaviour of this routine by supplying an alternate* routine and placing the address of the routine in the global variable* _func_vxMemProbeHook.  The BSP routine will be called instead of the* architecture specific routine vxMemArchProbe().** INTERNAL* This routine functions by setting the machine check, data access and* alignment exception vector to vxMemProbeTrap and then trying to read/write * the specified byte. If the address doesn't exist, or access error occurs,* vxMemProbeTrap will return ERROR.  Note that this routine saves and restores * the excpetion vectors that were there prior to this call.  The entire * procedure is done with interrupts locked out.** RETURNS:*    OK if the probe is successful, or*    ERROR if the probe caused a bus error.** SEE ALSO: vxMemArchProbe()*/STATUS vxMemProbe    (    FAST char *adrs,	/* address to be probed */    int mode,		/* VX_READ or VX_WRITE */    int length,		/* 1, 2, or 4 */    char *pVal 		/* where to return value, */			/* or ptr to value to be written */    )    {    STATUS status;    if (_func_vxMemProbeHook != NULL)	/* BSP specific probe routine */	status = (* _func_vxMemProbeHook) (adrs, mode, length, pVal);    else	/* architecture specific probe routine */	status = vxMemArchProbe (adrs, mode, length, pVal);        return status;    }/****************************************************************************** vxTas - C-callable test-and-set primitive for the MIPS architecture** This routine provides a read-modify-write capability through the sysLib* routine sysBusTas().  If a CPU_FAMILY has load-linked, store-conditional* support, the vxTas_llsc assembly routine is used to perform the test-and* set.  ** RETURNS: *    TRUE if the value had not been set, but is now;*    FALSE if the value was set already.** SEE ALSO: sysLib: sysBusTas(), vxALib: vxTas_llsc*/BOOL vxTas    (    void * address 		/* address to test and set */    )    {#ifdef _WRS_MIPS_LL_SC    return (vxTas_llsc(address));#else    int oldLevel;    oldLevel = intLock ();    if (*(volatile char *) address == 0)        {        *(volatile char *) address = 1;        intUnlock (oldLevel);        return (TRUE);        }    intUnlock (oldLevel);    return (FALSE); #endif    }/********************************************************************************* vxMemProbeTrap - vxMemProbe support routine** This entry point is momentarily attached to the bus error exception vector.* It is only activated as a result of the DBERR vector.  It simply sets the * global variable "vxBerrStatus" to ERROR to indicate that the bus error * did occur, and returns from the exception.** NOMANUAL*/void vxMemProbeTrap    (    int vecNum,		/* exception vector number */    ESFMIPS *pEsf,	/* pointer to exception stack frame */    int *regs 		/* pointer to r3k 32 general regs on esf */    )    {    /* bump epc so we don't re-excecute */    pEsf->esfRegs.pc += 1;    vxBerrStatus = ERROR;		/* so we know we got here	    */    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线视频观看| 91精品婷婷国产综合久久性色| 亚洲成a人片在线观看中文| 久久久精品黄色| 91精品国产品国语在线不卡| 91免费观看视频在线| 国产精品自产自拍| 日本sm残虐另类| 亚洲精品国产a久久久久久| 国产日韩欧美在线一区| 91精品国产综合久久婷婷香蕉| 99国产一区二区三精品乱码| 国产在线一区二区| 免费观看在线色综合| 亚洲高清三级视频| 亚洲激情一二三区| 国产精品美女久久久久久久久久久 | 久久久精品影视| 777xxx欧美| 欧美日韩精品系列| 色综合色综合色综合色综合色综合| 国产乱人伦偷精品视频免下载| 日本va欧美va欧美va精品| 亚洲综合色噜噜狠狠| 亚洲免费观看高清在线观看| 中文字幕一区视频| 国产精品免费aⅴ片在线观看| 久久免费视频一区| 精品国产一二三区| 精品不卡在线视频| 久久亚区不卡日本| 久久一区二区视频| 久久九九久精品国产免费直播| 精品日产卡一卡二卡麻豆| 日韩欧美第一区| 欧美大片在线观看一区二区| 日韩精品最新网址| 欧美变态凌虐bdsm| 久久一区二区视频| 国产欧美日韩三区| 国产精品国产三级国产三级人妇| 国产目拍亚洲精品99久久精品| 欧美国产精品一区| 国产精品不卡在线| 亚洲女人****多毛耸耸8| 亚洲精品视频免费看| 一区二区三区欧美在线观看| 亚洲国产综合91精品麻豆| 天堂va蜜桃一区二区三区 | 一区二区三区四区国产精品| 亚洲人成精品久久久久| 一区二区三区精品在线| 午夜精品一区二区三区电影天堂 | 五月综合激情日本mⅴ| 日韩av成人高清| 国产精品伊人色| 97精品电影院| 欧美三级电影在线观看| 制服.丝袜.亚洲.中文.综合| 精品国产3级a| 国产精品久久福利| 亚洲大型综合色站| 韩国理伦片一区二区三区在线播放| 国产精品中文字幕欧美| 色婷婷久久久亚洲一区二区三区| 欧美日韩和欧美的一区二区| 精品国产乱码久久久久久久久| 国产日韩欧美一区二区三区综合| 亚洲男同性视频| 美女在线观看视频一区二区| 北岛玲一区二区三区四区| 欧美体内she精高潮| 日韩欧美国产不卡| 17c精品麻豆一区二区免费| 午夜欧美在线一二页| 国产精品一品二品| 在线中文字幕不卡| 久久夜色精品一区| 夜色激情一区二区| 国产一区 二区| 欧美性感一区二区三区| 久久一二三国产| 亚洲一区在线观看免费| 国产福利91精品一区| 欧美日韩在线观看一区二区| 久久综合九色综合97_久久久| 亚洲免费观看在线观看| 国模套图日韩精品一区二区| 欧美午夜一区二区三区 | 一区二区三区四区精品在线视频| 国产中文字幕一区| 色伊人久久综合中文字幕| 精品国产凹凸成av人网站| 亚洲综合成人在线视频| 国产成人综合在线观看| 欧美日韩小视频| 国产精品三级在线观看| 卡一卡二国产精品| 欧美在线播放高清精品| 国产女人水真多18毛片18精品视频| 五月天网站亚洲| 一本到不卡免费一区二区| 欧美成人乱码一区二区三区| 亚洲成人动漫一区| www.在线欧美| 国产亚洲精品免费| 天天综合天天综合色| 色一情一乱一乱一91av| 中文字幕不卡在线| 国产精品一区在线| 亚洲精品在线观| 欧美aⅴ一区二区三区视频| 欧美在线三级电影| 成人免费一区二区三区视频| 丰满少妇久久久久久久 | 五月激情综合婷婷| 91麻豆自制传媒国产之光| 国产日本亚洲高清| 韩国欧美国产1区| 日韩欧美一区二区视频| 喷白浆一区二区| 欧美一区中文字幕| 日韩av一二三| 9191国产精品| 日本亚洲欧美天堂免费| 欧美日韩大陆在线| 视频一区在线视频| 日韩一区二区视频在线观看| 日韩高清一级片| 欧美一区二区在线不卡| 男男成人高潮片免费网站| 在线综合亚洲欧美在线视频| 婷婷中文字幕综合| 制服丝袜av成人在线看| 日本欧洲一区二区| 欧美大度的电影原声| 国产麻豆精品95视频| 国产偷v国产偷v亚洲高清| 福利一区福利二区| 国产精品美女www爽爽爽| www.av亚洲| 一区二区三区精品在线| 欧美日韩国产a| 日本不卡123| 2020国产成人综合网| 国产成人午夜99999| 国产精品久久久久影院老司| 色婷婷av一区二区三区gif| 亚洲最色的网站| 欧美一级片在线看| 国产在线麻豆精品观看| 国产精品欧美精品| 色哟哟国产精品免费观看| 午夜精品久久久久| 精品国产乱码久久久久久图片| 国产精品12区| 亚洲天堂中文字幕| 欧美日韩免费观看一区三区| 免费观看日韩电影| 国产精品网曝门| 欧美伊人久久久久久久久影院 | 91亚洲国产成人精品一区二区三 | 国产精品日产欧美久久久久| 色天天综合色天天久久| 日韩精品每日更新| 国产拍欧美日韩视频二区| 色婷婷综合久久久久中文一区二区 | 日本女人一区二区三区| 精品福利在线导航| 色综合天天性综合| 日本视频一区二区| 国产日韩欧美不卡在线| 欧美在线一区二区| 国产一二精品视频| 亚洲综合图片区| 国产亚洲精品7777| 欧美日韩国产中文| 成人精品一区二区三区四区| 天堂一区二区在线| 国产精品久久久久久久久果冻传媒| 欧美天堂亚洲电影院在线播放| 国产精品中文字幕一区二区三区| 夜夜嗨av一区二区三区中文字幕 | www.亚洲精品| 免费成人av在线| 亚洲人成人一区二区在线观看| 精品女同一区二区| 91国在线观看| 国产成人精品aa毛片| 婷婷国产v国产偷v亚洲高清| 国产日韩欧美制服另类| 91精品国产91综合久久蜜臀| 色悠悠亚洲一区二区| 国产一区免费电影| 天堂蜜桃一区二区三区| 日韩一区欧美小说| 国产喷白浆一区二区三区| 欧美一级电影网站| 欧美日韩三级在线| 99久久精品国产麻豆演员表|