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

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

?? vxlib.c

?? vxwork源代碼
?? C
字號:
/* vxLib.c - miscellaneous support routines *//* Copyright 1984-2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01v,20nov01,hdn  doc clean up for 5.501u,12nov01,ahm  added rudimentary support for power mgmt (SPR#32599)01t,29aug01,hdn  included vxI86Lib.h 		 replaced intVecSet/Get with intVecSet2/Get201s,04jun97,dat  added _func_vxMemProbeHook and vxMemArchProbe, SPR 8658.01r,25apr94,hdn  supported both PROTECTION_FAULT and PAGE_FAULT.01q,02jun93,hdn  updated to 5.1		  - changed functions to ansi style		  - fixed #else and #endif		  - changed READ, WRITE to VX_READ, VX_WRITE		  - changed copyright notice01p,27aug92,hdn  added I80X86 support.01o,12jul91,gae  reworked i960 vxMemProbe(); defined sysBErrVec here.01n,09jul91,del  fixed vxMemProbe (I960) to use sysBErrVec global as bus		 error vector. Installed new vxTas that will work on 		 non-aligned bytes.01m,01jun91,gae  fixed return of 960's vxTas().01l,24may91,jwt  added ASI parameters to create vxMemProbeAsi.01n,29apr91,hdn  added defines and macros for TRON architecture.01m,29apr91,del  reference sysMemProbe trap for board dependent reasons.01l,28apr91,del  I960 integration. added  vxMemProbeSup and vxTas here,		 as callouts to system (board) dependent functions because		 some i960 implementations require different interfaces 		 to hardware.01k,30mar91,jdi  documentation cleanup; doc review by dnw.01j,19mar90,jdi  documentation cleanup.01i,22aug89,jcf  fixed vxMemProbe for 68020/68030.01h,29apr89,mcl  vxMemProbe for SPARC; merged versions.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: vxALib*/#include "vxWorks.h"#include "taskLib.h"#include "intLib.h"#include "iv.h"#include "esf.h"#include "vxLib.h"/* imports */IMPORT int	sysCsInt;IMPORT void	vxIdleAutoHalt (void);/* globals */FUNCPTR	_func_vxMemProbeHook = NULL;	/* hook for BSP vxMemProbe */UINT32 vxPowerMode = VX_POWER_MODE_DISABLE;	/* Pwr Mgmt disabled at start */FUNCPTR vxIdleRtn  = (FUNCPTR)NULL;	/* PwrMgmt Rtn to call in Idle loop *//********************************************************************************* vxMemArchProbe - architecture specific probe routine (x86)** This is the routine implementing the architecture specific part of the* vxMemProbe routine.  It traps the relevant exceptions* while accessing the specified address.  If an* exception occurs, then the result will be ERROR.  If no exception occurs* then the result will be OK.** INTERNAL* This routine functions by setting the bus error trap vector to* vxMemProbeTrap and then trying to read/write the specified byte.  If the* address doesn't exist, vxMemProbeTrap will return ERROR.  Note that this* routine saves and restores the bus error vector that was there prior to* this call.  The entire procedure is done with interrupts locked out.** 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                    */    FAST void *pVal	/* where to return value,        */			/* or ptr to value to be written */    )    {    STATUS status;    int oldLevel;    FUNCPTR oldVec1;    FUNCPTR oldVec2;    int oldType1;    int oldType2;    int oldSel1;    int oldSel2;    oldLevel = intLock ();			/* LOCK INTERRUPTS */    /* save the vector for General Protection Fault and Page Fault */    intVecGet2 ((FUNCPTR *)IV_PROTECTION_FAULT, &oldVec1, &oldType1, &oldSel1);    intVecGet2 ((FUNCPTR *)IV_PAGE_FAULT, &oldVec2, &oldType2, &oldSel2);    /* set new one to catch these exception */    intVecSet2 ((FUNCPTR *)IV_PROTECTION_FAULT, (FUNCPTR)vxMemProbeTrap,	        IDT_INT_GATE, sysCsInt);    intVecSet2 ((FUNCPTR *)IV_PAGE_FAULT, (FUNCPTR)vxMemProbeTrap,	        IDT_INT_GATE, sysCsInt);    /* do probe */    if (mode == VX_READ)	status = vxMemProbeSup (length, adrs, pVal);    else	status = vxMemProbeSup (length, pVal, adrs);    /* restore original vector(s) */    intVecSet2 ((FUNCPTR *)IV_PROTECTION_FAULT, oldVec1, oldType1, oldSel1);    intVecSet2 ((FUNCPTR *)IV_PAGE_FAULT, oldVec2, oldType2, oldSel2);    intUnlock (oldLevel);			/* UNLOCK INTERRUPTS */    return (status);    }/********************************************************************************* vxMemProbe - probe an address for 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 READ, the value read will* be copied to the location pointed to by <pVal>.  If the probe is a* WRITE, 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 bus errors are trapped during the probe, and that the* access must otherwise be 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().** RETURNS:* OK if the probe is successful, or ERROR if the probe caused a bus error or* an address misalignment.** 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                    */    FAST 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);    }/********************************************************************************* vxPowerModeSet - set the power management mode (x86)** This routine sets the power management mode which will be activated* only when the kernel is idling.* vxPowerModeSet() is normally called in the BSP initialization routine* (sysHwInit).** Power management modes include the following:* .iP "VX_POWER_MODE_DISABLE (0x1)"* Power management is disable: this prevents halting the CPU.* .iP "VX_POWER_MODE_AUTOHALT (0x4)"* Power management is enable: this allows halting the CPU.** RETURNS: OK, or ERROR if <mode> is incorrect or not supported by the* processor.** SEE ALSO:* vxPowerModeGet()*/STATUS vxPowerModeSet    (    UINT32 mode		/* power management mode to set */    )    {    /* set vxPowMgtEnable and vxPowMgtMode according to <mode> */    switch (mode)	{	case VX_POWER_MODE_DISABLE:	    vxPowerMode = VX_POWER_MODE_DISABLE;	    vxIdleRtn = (FUNCPTR)NULL;	    break;	case VX_POWER_MODE_AUTOHALT:	    vxPowerMode = VX_POWER_MODE_AUTOHALT;	    vxIdleRtn = (FUNCPTR)vxIdleAutoHalt;	    break;	default:	    return (ERROR);     /* mode not supported */	}    return (OK);    }/********************************************************************************* vxPowerModeGet - get the power management mode (x86)** This routine returns the power management mode set when kernel is idling.** RETURNS:* the power management mode (VX_POWER_MODE_DISABLE, VX_POWER_MODE_AUTOHALT)** SEE ALSO:* vxPowerModeSet()*/UINT32 vxPowerModeGet (void)    {    return (vxPowerMode);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产蜜臀av在线一区二区三区| 蓝色福利精品导航| 日本va欧美va欧美va精品| 粉嫩13p一区二区三区| 在线一区二区视频| 中文字幕一区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 精品视频在线免费| 国产女人水真多18毛片18精品视频| 偷窥少妇高潮呻吟av久久免费| 暴力调教一区二区三区| 亚洲精品一区二区三区四区高清| 亚洲影院久久精品| 99久久久久久| 国产精品免费久久久久| 国产一区在线视频| 精品成人在线观看| 美女在线视频一区| 91精品国产欧美一区二区18| 亚洲人成人一区二区在线观看 | 蜜桃av一区二区| 欧美日韩国产区一| 亚洲激情第一区| 色综合亚洲欧洲| 亚洲视频一区二区在线观看| 成人在线综合网站| 国产日韩欧美精品一区| 国产一区二区三区美女| 精品国产91久久久久久久妲己 | 无吗不卡中文字幕| 欧美精品久久99久久在免费线 | 成人精品电影在线观看| 26uuu国产一区二区三区| 日本美女视频一区二区| 欧美日韩精品专区| 午夜电影久久久| 欧美乱妇一区二区三区不卡视频| 亚洲国产视频一区| 91精品国产黑色紧身裤美女| 午夜在线成人av| 欧美r级电影在线观看| 激情文学综合网| 国产精品久久久久久户外露出| 99精品黄色片免费大全| 日本一区二区三区在线不卡| 成人av网站大全| 亚洲摸摸操操av| 69精品人人人人| 国产综合色视频| 国产精品国产三级国产普通话三级| 99精品1区2区| 日本欧美一区二区在线观看| 精品国产伦理网| 不卡的av网站| 青青国产91久久久久久| 国产目拍亚洲精品99久久精品| 色婷婷综合在线| 精品一区二区三区在线视频| 中文字幕在线不卡一区二区三区| 91麻豆精品在线观看| 亚洲一区二区免费视频| 精品久久久久香蕉网| 成年人国产精品| 日本va欧美va瓶| 中文字幕一区二区三中文字幕| 欧美三区免费完整视频在线观看| 精品综合久久久久久8888| 国产精品福利一区| 日韩欧美国产综合一区| 99久久久免费精品国产一区二区| 日韩不卡一二三区| 自拍偷自拍亚洲精品播放| 欧美一区三区二区| 91片黄在线观看| 久久精品二区亚洲w码| 亚洲激情欧美激情| 一区二区三区精品在线观看| 欧美一区二区三区在| 不卡av在线免费观看| 蜜臀va亚洲va欧美va天堂| 日韩美女视频19| 2020国产精品| 日韩一区国产二区欧美三区| 99re免费视频精品全部| 韩国在线一区二区| 日韩高清在线不卡| 亚洲精品一二三| 国产精品网站在线观看| 亚洲精品一区二区三区四区高清| 欧美日韩综合在线免费观看| bt欧美亚洲午夜电影天堂| 国产一区二区剧情av在线| 青娱乐精品视频| 天堂va蜜桃一区二区三区 | 久久蜜桃香蕉精品一区二区三区| 欧美色爱综合网| 在线亚洲免费视频| caoporn国产精品| 成人国产一区二区三区精品| 韩国av一区二区三区| 日本系列欧美系列| 五月激情综合色| 日韩和欧美一区二区三区| 亚洲综合色网站| 亚洲一级二级三级在线免费观看| 国产精品国产三级国产三级人妇 | 成人av网址在线| 国产ts人妖一区二区| 国内精品久久久久影院薰衣草| 蜜臀av一级做a爰片久久| 亚洲成人一区二区在线观看| 亚洲五码中文字幕| 亚洲一卡二卡三卡四卡无卡久久| 亚洲视频你懂的| 一区二区三区中文字幕在线观看| 亚洲视频图片小说| 一区二区三区欧美视频| 亚洲制服丝袜av| 图片区日韩欧美亚洲| 无码av中文一区二区三区桃花岛| 日日噜噜夜夜狠狠视频欧美人 | 日韩视频免费直播| 精品国产乱码久久久久久夜甘婷婷 | 亚洲精品伦理在线| 亚洲午夜免费视频| 轻轻草成人在线| 国产精品影视天天线| 成人综合在线网站| 欧美午夜在线一二页| 欧美精品国产精品| 精品粉嫩aⅴ一区二区三区四区| 久久综合九色综合97婷婷女人| 亚洲国产精品av| 一区二区三区四区高清精品免费观看 | 婷婷激情综合网| 老司机免费视频一区二区三区| 国产一区二区在线看| 色天天综合色天天久久| 欧美在线视频日韩| 日韩一区二区麻豆国产| www精品美女久久久tv| 中文字幕一区二区三区在线播放| 一区二区三区精品在线观看| 免费黄网站欧美| 成人av电影观看| 欧美区一区二区三区| 久久综合网色—综合色88| 亚洲色图制服诱惑| 久久av资源网| 91国产成人在线| 久久久综合视频| 日韩国产欧美一区二区三区| 国产一区二区三区综合| 欧美主播一区二区三区美女| 久久先锋影音av鲁色资源| 亚洲欧美日韩人成在线播放| 人人狠狠综合久久亚洲| 暴力调教一区二区三区| 91精品国产麻豆| 亚洲综合图片区| 成人午夜激情在线| 欧美高清hd18日本| 中文字幕欧美一区| 久国产精品韩国三级视频| 91国产免费观看| 国产精品的网站| 国产精品一卡二卡在线观看| 欧美日韩黄色影视| 最新国产の精品合集bt伙计| 久久99蜜桃精品| 欧美日精品一区视频| 亚洲激情图片一区| 成人福利视频在线看| 久久精品夜色噜噜亚洲aⅴ| 天天爽夜夜爽夜夜爽精品视频| 色综合天天做天天爱| 欧美极品xxx| 麻豆专区一区二区三区四区五区| 在线观看精品一区| 最新高清无码专区| 国产精品18久久久久| 日韩精品在线网站| 日韩精品成人一区二区在线| 色素色在线综合| 亚洲图片激情小说| 97精品国产露脸对白| 欧美日韩国产首页| 日韩欧美一级片| 国产91丝袜在线观看| 精品福利一二区| 国产成人综合视频| 亚洲精品第1页| 91精品久久久久久久91蜜桃| 捆绑紧缚一区二区三区视频| 欧美一区二区日韩| 成人av电影在线| 亚洲国产视频a| 国产精品三级电影| 色婷婷精品大在线视频| 中文字幕+乱码+中文字幕一区|