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

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

?? vxlib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* vxLib.c - miscellaneous support routines *//* Copyright 1984-2001 Wind River Systems, Inc. *//*modification history--------------------01t,05jun02,wsl  remove reference to SPARC and i96001s,20nov01,hdn  updated x86 specific sections01r,16nov01,tlc  Update for MIPS architecture.01q,29oct01,zl   SH documentation updates.01p,03mar00,zl   merged SH support into T201o,12mar99,elg  VX_POWER_MODE_NAP is not supported by PPC860 (SPR 22432).01n,05oct98,jmp  doc: added {...} when necessary.01m,18aug98,fle  doc : added star character at the beginning of the                 vxPowerDown description01l,21apr98,jpd  added ARM SWPB note.01k,04jun97,dat  added vxMemArchProbe, SPR 865801j,12nov96,dgp  doc: add vxPowerModeGet/Set/Down routines01i,25nov95,jdi  removed 29k stuff.01h,23oct95,jdi  doc: added bit values to vxMemProbe() arg (SPR 4276).01g,22oct95,jdi  doc: added am29k test-and-set instruction (SPR 4356).01f,20mar95,jdi  added new vxSSEnable()/vxSSDisable() stuff from			mc68k/vxALib.s.01e,31jan95,rhp  doc tweaks.            jdi  changed 80960 to i960.01d,08nov93,pme Added vxUnalignedAccessEnable() and vxUnalignedAccessDisable().01c,15feb93,jdi made NOMANUAL: vxAtomicModify(), vxIACSend(), vxIMRClear(),		vxIMRSet(), vxSysctlSend().01b,20jan93,jdi documentation cleanup.01a,23sep92,jdi written, based on vxALib.s and vxLib.c for		mc68k, sparc, i960, mips.*//*DESCRIPTIONThis module contains miscellaneous VxWorks support routines.INCLUDE FILES: vxLib.h*//********************************************************************************* vxTas - C-callable atomic test-and-set primitive** This routine provides a C-callable interface to a test-and-set* instruction.  The test-and-set instruction is executed on the specified* address.  The architecture test-and-set instruction is:**	68K:	'tas'*	x86:    'lock bts'*	SH:	'tas.b'*	ARM:	'swpb'** This routine is equivalent to sysBusTas() in sysLib.** MIPS:* Because VxWorks does not support the MIPS MMU, only kseg0 and kseg1* addresses are accepted; other addresses return FALSE. ** NOTE X86:* BTS "Bit Test and Set" instruction is executed with LOCK instruction prefix* to lock the Bus during the execution.  The bit position 0 is toggled.** NOTE SH:* The SH version of vxTas() simply executes the `tas.b' instruction, and the* test-and-set (atomic read-modify-write) operation may require an external* bus locking mechanism on some hardware.  In this case, wrap the vxTas()* with a bus locking and unlocking code in the sysBusTas().** RETURNS:* TRUE if the value had not been set (but is now), or FALSE if the* value was set already.** SEE ALSO: sysBusTas()*/BOOL vxTas     (    void *	address		/* address to test and set */    )    {    ...    }/********************************************************************************* vxMemArchProbe - architecture specific part of vxMemProbe** 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.** RETURNS: OK or ERROR if an exception occurred during access.*/STATUS vxMemArchProbe     (    FAST char *  adrs,    /* address to be probed          */    int          mode,    /* VX_READ or VX_WRITE           */    int          length,  /* 1, 2, 4, or 8                 */    FAST char *  pVal     /* where to return value,        */			  /* or ptr to value to be written */    )    {    ...    }/********************************************************************************* 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 is 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 VX_READ (0), the value* read is copied to the location pointed to by <pVal>.  If the probe is a* VX_WRITE (1), the value written is 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., it must 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 vxMemProbe() by supplying an alternate* routine and placing the address 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 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 the probe caused a bus error or was misaligned.** SEE ALSO:* vxMemArchProbe()*/STATUS vxMemProbe     (    FAST char *  adrs,    /* address to be probed          */    int          mode,    /* VX_READ or VX_WRITE           */    int          length,  /* 1, 2, 4, or 8                 */    FAST char *  pVal     /* where to return value,        */			  /* or ptr to value to be written */    )    {    ...    }/********************************************************************************* vxMemProbeAsi - probe address in ASI space for bus error (SPARC)** This routine probes the specified address to see if it is readable or* writable, as specified by <mode>.  The address will be* read/written as 1, 2, 4, or 8 bytes as specified by <length> * (values other than 1, 2, 4, or 8 return ERROR).  If the probe is a* VX_READ (0), then the value read will be returned in the location pointed to* by <pVal>.  If the probe is a VX_WRITE (1), then the value written will be* taken from the location pointed to by <pVal>.  In either case, <pVal>* should point to a value of the appropriate length, 1, 2, 4, or 8 bytes, as* specified by <length>.** The fifth parameter <adrsAsi> is the ASI parameter used to modify* the <adrs> parameter.** EXAMPLE* .CS*     testMem (adrs)*        char *adrs;*        {*        char testW = 1;*        char testR;**        if (vxMemProbeAsi (adrs, VX_WRITE, 1, &testW) == OK)*            printf ("value %d written to adrs %x\en", testW, adrs);**        if (vxMemProbeAsi (adrs, VX_READ, 1, &testR) == OK)*            printf ("value %d read from adrs %x\en", testR, adrs);*        }* .CE** 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 the probe caused a bus error or* was misaligned.** NOMANUAL*/STATUS vxMemProbeAsi    (    FAST char *  adrs,	  /* address to be probed              */    int          mode,	  /* VX_READ or VX_WRITE               */    int          length,  /* 1, 2, 4, or 8                     */     FAST char *  pVal,	  /* where to return value,            */			  /* or ptr to value to be written     */    int	adrsAsi		  /* ASI field of address to be probed */    )    {    ...    }/********************************************************************************* vxAtomicModify - interface to the 'atmod' instruction (i960)** This routine atomically modifies a location in memory.** RETURNS: The original value in the memory location.** NOMANUAL*/UINT8 vxAtomicModify    (    UINT8    value,         /* value to place in memory */    UINT8 *  pMem,          /* location to modify       */    UINT8    mask           /* bit mask for value       */    )    {    ...    }/******************************************************************************** vxCacheInvalidate - invalidate the instruction cache (i960)** This routine invalidates the instruction cache.  The entire instruction* cache is flushed.** RETURNS: N/A** NOMANUAL*/  vxCacheInvalidate (void)    {    ...    }/******************************************************************************** vxSysctlSend - send a SYSCTL message to the processor (i960 CA)** This routine sends a SYSCTL message to the processor.** RETURNS: N/A** NOMANUAL*/vxSysctlSend    (    UINT32	f12,	/* arg0 contains field2 messageType field1 */    UINT32	f3,	/* arg1 contains field3                    */    UINT32	f4	/* arg2 contains field4                    */    )    {    ...    }/******************************************************************************** vxIACSend - send an IAC message to the processor (i960 KB/SB)** This routine sends an intra-agent communication (IAC) message to * the processor.** RETURNS: N/A** NOMANUAL*/vxIACSend    (    UINT32 *  iac	/* arg0 contains pointer to IAC structure */    )    {    ...    }/******************************************************************************** vxIMRClear - clear the interrupt mask register (i960)** This routine clears bits in the interrupt mask register.** RETURNS: N/A** NOMANUAL*/vxIMRClear    (    UINT32	mask	/* bits to clear in interrupt mask reg */    )    {    ...    }/******************************************************************************** vxIMRSet - set the interrupt mask register (i960)** This routine sets bits in the interrupt mask register.** RETURNS: N/A** NOMANUAL*/vxIMRSet    (    UINT32	mask	/* bits to set in interrupt mask reg */    )    {    ...    }/********************************************************************************* vxSSEnable - enable the superscalar dispatch (MC68060)** This function sets the ESS bit of the Processor Configuration Register (PCR)* to enable the superscalar dispatch.** RETURNS : N/A*/void vxSSEnable (void)    {    ...    }/********************************************************************************* vxSSDisable - disable the superscalar dispatch (MC68060)** This function resets the ESS bit of the Processor Configuration Register (PCR)* to disable the superscalar dispatch.** RETURNS : N/A*/void vxSSDisable (void)    {    ...    }/********************************************************************************* vxPowerModeSet - set the power management mode (PowerPC, SH, x86)** This routine selects the power management mode to be activated when* vxPowerDown() is called.  vxPowerModeSet() is normally called in the BSP* initialization routine sysHwInit().** USAGE PPC:* Power management modes include the following:* .iP "VX_POWER_MODE_DISABLE (0x1)"* Power management is disabled; this prevents the MSR(POW) bit from being

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产高清一区二区| 国产一区二区三区精品欧美日韩一区二区三区| 欧美一区二区三区日韩视频| 日本韩国一区二区三区| 日韩国产一区二| 一区二区三区在线免费视频| 2019国产精品| 欧美成人一区二区| 欧美老年两性高潮| 在线免费视频一区二区| 日韩女优av电影在线观看| 成人动漫av在线| 国产一区在线观看麻豆| 看电影不卡的网站| 日本成人在线看| 日本va欧美va欧美va精品| 亚洲国产毛片aaaaa无费看| 亚洲天堂精品视频| 国产精品成人午夜| 亚洲色大成网站www久久九九| 国产欧美综合在线| 日本一区二区成人在线| 国产午夜精品美女毛片视频| 久久久久久久久久久黄色| 久久久精品免费免费| 亚洲国产高清在线观看视频| 国产欧美日韩麻豆91| 中文欧美字幕免费| 欧美激情一区二区三区全黄| 久久久久久久久99精品| 91精品久久久久久久99蜜桃| 日韩欧美在线1卡| 精品人在线二区三区| 国产亚洲成年网址在线观看| 中文字幕在线播放不卡一区| 综合av第一页| 亚洲福利视频一区二区| 午夜av一区二区| 国产在线精品免费av| 欧美在线观看18| 一区二区三区国产精华| 欧美精品一区二区三区四区| 中文av一区二区| 日韩激情中文字幕| 午夜精品久久久久久久99水蜜桃| 亚洲精品一区在线观看| 亚洲一二三四区不卡| 精品视频免费看| 五月婷婷久久综合| 日韩欧美一二三区| 久久草av在线| 日韩一区二区三区四区五区六区| 免费久久99精品国产| 欧美xxxxxxxxx| 奇米色777欧美一区二区| 色天天综合色天天久久| 亚洲激情图片qvod| 成人高清视频在线观看| 精品国产不卡一区二区三区| 奇米一区二区三区av| 欧美videossexotv100| 另类小说色综合网站| 久久综合色天天久久综合图片| 国产精品一区二区果冻传媒| 国产精品色一区二区三区| caoporn国产一区二区| 亚洲欧美aⅴ...| 欧美视频中文字幕| 麻豆一区二区三区| 国产区在线观看成人精品| kk眼镜猥琐国模调教系列一区二区 | 日韩一级成人av| 国产在线观看一区二区| 久久久久久久久久看片| 色香蕉久久蜜桃| 热久久国产精品| 欧美激情在线一区二区| 91免费看`日韩一区二区| 日韩美女视频一区二区| 精品视频在线免费看| 蜜臀av亚洲一区中文字幕| 国产偷国产偷亚洲高清人白洁| 9人人澡人人爽人人精品| 丝袜美腿亚洲色图| 国产清纯美女被跳蛋高潮一区二区久久w | 国产一区二区三区av电影| 国产精品乱码人人做人人爱| 欧美老人xxxx18| 波多野结衣在线aⅴ中文字幕不卡 波多野结衣在线一区 | 韩国在线一区二区| 中文字幕中文字幕一区二区| 精品婷婷伊人一区三区三| 国产精品一区二区免费不卡| 亚洲一区二区三区爽爽爽爽爽 | 91视频91自| 久久99国产精品尤物| 中文字幕一区二区不卡| 制服丝袜中文字幕一区| 成人国产精品免费网站| 亚洲午夜精品一区二区三区他趣| 精品成人一区二区三区| 欧美怡红院视频| 成人一区二区三区| 美日韩一区二区三区| 亚洲青青青在线视频| 久久综合九色欧美综合狠狠| 欧美性xxxxxxxx| 99久久免费国产| 国产美女精品人人做人人爽| 偷拍与自拍一区| 亚洲精品成人精品456| 26uuu亚洲综合色欧美| 欧美精品少妇一区二区三区| 99久久免费视频.com| 国产成人免费视频网站| 国产资源在线一区| 日韩电影在线一区二区三区| 亚洲精品老司机| 日韩久久一区二区| 国产精品蜜臀在线观看| 欧美精品一区二区三区在线| 日韩一级免费观看| 日韩无一区二区| 欧美丰满一区二区免费视频 | 欧美刺激脚交jootjob| 欧美日韩dvd在线观看| 在线观看国产91| 色婷婷综合五月| 在线亚洲欧美专区二区| 91在线观看高清| 91在线视频播放| 91麻豆产精品久久久久久| 99精品欧美一区二区三区小说| 成人白浆超碰人人人人| 精品制服美女久久| 美女视频免费一区| 久久精品国产精品亚洲精品| 亚洲色图在线看| 国产精品色呦呦| 日韩欧美一区二区三区在线| 在线成人av影院| 日韩欧美综合一区| 久久精品人人做人人爽人人| 国产欧美1区2区3区| 18欧美亚洲精品| 亚洲精品视频在线观看网站| 亚洲激情在线播放| 图片区小说区区亚洲影院| 免费看欧美女人艹b| 国产一级精品在线| jvid福利写真一区二区三区| 91黄视频在线| 91精品在线一区二区| 26uuu亚洲| 欧美激情综合五月色丁香| 亚洲日本va在线观看| 日本一区中文字幕| 盗摄精品av一区二区三区| 91小视频免费看| 国产福利一区在线| 91蜜桃传媒精品久久久一区二区| 91亚洲国产成人精品一区二三| 欧美日韩免费高清一区色橹橹| 欧美午夜精品久久久| 欧美午夜电影在线播放| 欧美一区二区二区| 亚洲国产精品黑人久久久| 一区二区三区日韩在线观看| 日本伊人色综合网| 盗摄精品av一区二区三区| 欧美三片在线视频观看| 久久久久国产精品麻豆 | 欧美三级在线播放| 久久一日本道色综合| 亚洲精品视频在线| 久久精品国产亚洲一区二区三区| 成人av一区二区三区| 欧洲视频一区二区| 日本一区二区三区久久久久久久久不 | 国产91精品一区二区| a在线欧美一区| 欧美一级在线免费| 亚洲乱码国产乱码精品精小说 | 色综合久久九月婷婷色综合| 色综合久久88色综合天天免费| 久久久久久麻豆| 亚洲va韩国va欧美va精品 | 欧美激情中文字幕一区二区| 亚洲国产精品久久艾草纯爱| 国产成人综合亚洲91猫咪| 日韩欧美的一区| 日韩影院免费视频| 99精品视频在线免费观看| 久久久精品国产免大香伊| 亚洲精品精品亚洲| 99精品偷自拍| 中文字幕在线观看一区二区| 韩国欧美国产1区| 日韩亚洲欧美一区二区三区| 亚洲一区在线观看免费|