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

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

?? windalib.s

?? vxwork源代碼
?? S
?? 第 1 頁 / 共 3 頁
字號:
/* windALib.s - I80x86 internal VxWorks kernel assembly library *//* Copyright 1984-2001 Wind River Systems, Inc. *//*modification history--------------------01q,05dec01,hdn  added PAUSE instruction for Pentium401p,13nov01,ahm  Added AutoHalt mode for idling kenel (SPR#32599)01o,26sep01,hdn  added the interrupt stack switch support01n,23aug01,hdn  added FUNC/FUNC_LABEL, replaced .align with .balign		 replaced sysCodeSelector with sysCsSuper01m,28aug98,hdn  replaced sysIntLevel() with "movl INT29(%edi),%eax"01l,10aug98,pr   replaced evtsched with function pointer _func_evtLogTSched01k,29apr98,cjtc fix WV instrumentation in idle01j,16apr98,pr   cleanup.01i,17feb98,pr   added WindView 2.0 code.01h,29jul96,sbs  Made windview conditionally compile.01g,14jun95,hdn  changed CODE_SELECTOR to sysCodeSelector.01f,08aug94,hdn  added support for WindView.01e,02jun93,hdn  updated to 5.1.		  - fixed #else and #endif		  - changed VOID to void		  - changed ASMLANGUAGE to _ASMLANGUAGE		  - changed copyright notice01d,15oct92,hdn  supported nested interrupt.01c,13oct92,hdn  debugged.01b,07apr92,hdn  written optimized codes.01a,28feb92,hdn  written based on TRON, 68k version.*//*DESCRIPTIONThis module contains internals to the VxWorks kernel.These routines have been coded in assembler because they are eitherspecific to this processor, or they have been optimized for performance.*/#define _ASMLANGUAGE#include "vxWorks.h"#include "asm.h"#include "regs.h"#include "esf.h"#include "private/eventP.h"#include "private/trgLibP.h"#include "private/taskLibP.h"#include "private/semLibP.h"#include "private/workQLibP.h"/* defines */#define	INT_STACK_USE#define X86_POWER_MANAGEMENT	.data	.globl	FUNC(copyright_wind_river)	.long	FUNC(copyright_wind_river)	/* internals */	.globl	GTEXT(windExit)		/* routine to exit mutual exclusion */	.globl	GTEXT(windIntStackSet)	/* interrupt stack set routine */	.globl	GTEXT(vxTaskEntry)	/* task entry wrapper */	.globl	GTEXT(intEnt)		/* interrupt entrance routine */	.globl	GTEXT(intExit)		/* interrupt exit routine */	.globl	GTEXT(intStackEnable)	/* interrupt stack usage enabler */#ifdef X86_POWER_MANAGEMENT        .globl	GTEXT(vxIdleAutoHalt)	/* put cpu in AutoHalt when idle */#endif /* X86_POWER_MANAGEMENT */#ifdef PORTABLE	.globl	GTEXT(windLoadContext)	/* needed by portable reschedule () */#else	.globl	GTEXT(reschedule)	/* optimized reschedule () routine */#endif	/* PORTABLE */	.globl	GDATA(vxIntStackPtr)	/* interrupt stack pointer */	.globl	GDATA(vxIntStackEnabled) /* interrupt stack enabled */FUNC_LABEL(vxIntStackPtr)		/* interrupt stack pointer */	.long	0x00000000FUNC_LABEL(vxIntStackEnabled)		/* TRUE if interrupt stack is enabled */	.long	0x00000000FUNC_LABEL(intNest)			/* interrupt stack nest counter */	.long	0x00000000	.text	.balign 16/********************************************************************************* windExitInt - exit kernel routine from interrupt level** windExit branches here if exiting kernel routine from int level* No rescheduling is necessary because the ISR will exit via intExit, and* intExit does the necessary rescheduling.*/windExitIntWork:	popfl				/* pop original level */	call	FUNC(workQDoWork)	/* empty the work queue */windExitInt:	pushfl				/* push interrupt level to stack */	cli				/* LOCK INTERRUPTS */	cmpl	$0,FUNC(workQIsEmpty)	/* test for work to do */	je	windExitIntWork		/* workQ is not empty */#ifdef WV_INSTRUMENTATION	/* windview instrumentation - BEGIN	 * exit windExit with no dispatch; point 1 in the windExit diagram.	 */        cmpl    $0,FUNC(evtAction)	/* is WindView on? */        je      noInst1	movl	$ WV_CLASS_1_ON,%eax        andl    FUNC(wvEvtClass),%eax	/* is event collection on? */        cmpl    $ WV_CLASS_1_ON,%eax	/* is event collection on? */        jne     trgCheckInst1	movl	FUNC(_func_evtLogTSched),%edx	/* event log routine */	cmpl	$0,%edx        je      trgCheckInst1        movl	FUNC(taskIdCurrent),%eax	/* current task */        movl	WIND_TCB_PRIORITY(%eax),%ecx        pushl	%ecx	                        /* WIND_TCB_PRIORITY */        pushl	%eax	                        /* taskIdCurrent */        /* Here we try to determine if the task is running at an         * inherited priority, if so a different event is generated.         */        cmpl	WIND_TCB_PRI_NORMAL(%eax),%ecx        jge     noInst1Inheritance		/* no inheritance */        pushl	$ EVENT_WIND_EXIT_NODISPATCH_PI        jmp     inst1Inheritance		/* no inheritance */noInst1Inheritance:        pushl	$ EVENT_WIND_EXIT_NODISPATCH	/* event id */inst1Inheritance:        call    *%edx                           /* call evtsched routine */	addl    $12,%esptrgCheckInst1:	movl	$ TRG_CLASS_1,%eax     	orl 	$ TRG_ON,%eax        cmpl    FUNC(trgEvtClass),%eax		/* any trigger? */        jne     noInst1        movl    FUNC(_func_trgCheck),%edx	/* triggering routine */	cmpl	$0,%edx        je      noInst1        movl	FUNC(taskIdCurrent),%eax	/* current task */        movl	WIND_TCB_PRIORITY(%eax),%ecx        pushl   $ 0                     /* 0 */        pushl   $ 0                     /* 0 */        pushl   $ 0                     /* 0 */        pushl	%ecx	                /* WIND_TCB_PRIORITY */        pushl	%eax	                /* taskIdCurrent */        pushl   $ 0                     /* obj */        pushl   $ 0                     /* TRG_CLASS1_INDEX */        /* Here we try to determine if the task is running at an         * inherited priority, if so a different event is generated.         */        cmpl	WIND_TCB_PRI_NORMAL(%eax),%ecx        jge     noTrgInst1Inheritance		/* no inheritance */        pushl	$ EVENT_WIND_EXIT_NODISPATCH_PI        jmp     trgInst1Inheritance		/* no inheritance */noTrgInst1Inheritance:        pushl	$ EVENT_WIND_EXIT_NODISPATCH    /* event id */trgInst1Inheritance:        call    *%edx                           /* call triggering routine */	addl    $32,%espnoInst1:	/* windview instrumentation - END */#endif  /* WV_INSTRUMENTATION */	movl	$0,FUNC(kernelState)	/* release mutual exclusion to kernel */	popfl				/* pop original level */	xorl	%eax,%eax		/* return OK */	ret				/* intExit will do rescheduling *//********************************************************************************* checkTaskReady - check that taskIdCurrent is ready to run** This code branched to by windExit when it finds preemption is disabled.* It is possible that even though preemption is disabled, a context switch* must occur.  This situation arrises when a task block during a preemption* lock.  So this routine checks if taskIdCurrent is ready to run, if not it* branches to save the context of taskIdCurrent, otherwise it falls thru to* check the work queue for any pending work.*/	.balign 16,0x90checkTaskReady:	cmpl	$0,WIND_TCB_STATUS(%edx) /* is task ready to run */	jne	saveTaskContext		/* if no, we blocked with preempt off */	/* FALL THRU TO CHECK WORK QUEUE *//********************************************************************************* checkWorkQ -	check the work queue for any work to do** This code is branched to by windExit.  Currently taskIdCurrent is highest* priority ready task, but before we can return to it we must check the work* queue.  If there is work we empty it via doWorkPreSave, otherwise we unlock* interrupts, clear d0, and return to taskIdCurrent.*/checkWorkQ:	cli				/* LOCK INTERRUPTS */	cmpl	$0,FUNC(workQIsEmpty)	/* test for work to do */	je	doWorkPreSave		/* workQueue is not empty */#ifdef WV_INSTRUMENTATION	/* windview instrumentation - BEGIN	 * exit windExit with no dispatch; point 4 in the windExit diagram.	 */        cmpl    $0,FUNC(evtAction)	/* is WindView on? */        je      noInst4	movl	$ WV_CLASS_1_ON,%eax        andl    FUNC(wvEvtClass),%eax	/* is event collection on? */        cmpl    $ WV_CLASS_1_ON,%eax	/* is event collection on? */        jne     trgCheckInst4	movl	FUNC(_func_evtLogTSched),%edx	/* event log routine */	cmpl	$0,%edx        je      trgCheckInst4        movl	FUNC(taskIdCurrent),%eax	/* current task */        movl	WIND_TCB_PRIORITY(%eax),%ecx        pushl	%ecx	                        /* WIND_TCB_PRIORITY */        pushl	%eax	                        /* taskIdCurrent */	/* Here we try to determine if the task is running at an	 * inherited priority, if so a different event is generated.	 */        cmpl	WIND_TCB_PRI_NORMAL(%eax),%ecx        jge     noInst4Inheritance		/* no inheritance */        pushl	$ EVENT_WIND_EXIT_NODISPATCH_PI        jmp     inst4Inheritance		/* no inheritance */noInst4Inheritance:        pushl	$ EVENT_WIND_EXIT_NODISPATCH	/* event id */inst4Inheritance:        call    *%edx                           /* call evtsched routine */	addl    $12,%esptrgCheckInst4:	movl	$ TRG_CLASS_1,%eax     	orl 	$ TRG_ON,%eax        cmpl    FUNC(trgEvtClass),%eax		/* any trigger? */        jne     noInst4        movl    FUNC(_func_trgCheck),%edx	/* triggering routine */	cmpl	$0,%edx        je      noInst4        movl	FUNC(taskIdCurrent),%eax	/* current task */        movl	WIND_TCB_PRIORITY(%eax),%ecx        pushl   $ 0                     /* 0 */        pushl   $ 0                     /* 0 */        pushl   $ 0                     /* 0 */        pushl	%ecx	                /* WIND_TCB_PRIORITY */        pushl	%eax	                /* taskIdCurrent */        pushl   $ 0                     /* obj */        pushl   $ 0                     /* TRG_CLASS1_INDEX */	/* Here we try to determine if the task is running at an	 * inherited priority, if so a different event is generated.	 */        cmpl	WIND_TCB_PRI_NORMAL(%eax),%ecx        jge     noTrgInst4Inheritance		/* no inheritance */        pushl	$ EVENT_WIND_EXIT_NODISPATCH_PI        jmp     trgInst4Inheritance		/* no inheritance */noTrgInst4Inheritance:        pushl	$ EVENT_WIND_EXIT_NODISPATCH	/* event id */trgInst4Inheritance:        call    *%edx                   /* call triggering routine */	addl    $32,%espnoInst4:	/* windview instrumentation - END */#endif  /* WV_INSTRUMENTATION */	movl	$0,FUNC(kernelState)	/* else release exclusion */	sti				/* UNLOCK INTERRUPTS */	xorl	%eax,%eax		/* return OK */	ret				/* back to calling task *//********************************************************************************* doWorkPreSave - empty the work queue with current context not saved** We try to empty the work queue here, rather than let reschedule* perform the work because there is a strong chance that the* work we do will not preempt the calling task.  If this is the case, then* saving the entire context just to restore it in reschedule is a waste of* time.  Once the work has been emptied, the ready queue must be checked to* see if reschedule must be called, the check of the ready queue is done by* branching back up to checkTaskCode.*/	.balign 16,0x90doWorkPreSave:	sti				/* UNLOCK INTERRUPTS */	call	FUNC(workQDoWork)	/* empty the work queue */	jmp	checkTaskSwitch		/* back up to test if tasks switched *//******************************************************************************** windExit - task level exit from kernel** Release kernel mutual exclusion (kernelState) and dispatch any new task if* necessary.  If a higher priority task than the current task has been made* ready, then we invoke the rescheduler.  Before releasing mutual exclusion,* the work queue is checked and emptied if necessary.** If rescheduling is necessary, the context of the calling task is saved in its* associated TCB with the PC pointing at the next instruction after the jsr to* this routine.  The SP in the tcb is modified to ignore the return address* on the stack.  Thus the context saved is as if this routine was never called.** Only the volatile registers e[adc]x are safe to use until the context* is saved in saveTaskContext.** At the call to reschedule the value of taskIdCurrent must be in edx.** RETURNS: OK or*	   ERROR if semaphore timeout occurs.** NOMANUAL* STATUS windExit ()*/	.balign 16,0x90FUNC_LABEL(windExit)	cmpl	$0,FUNC(intCnt)		/* if intCnt == 0 we're from task */	jne	windExitInt		/* else we're exiting interrupt code */	/* FALL THRU TO CHECK THAT CURRENT TASK IS STILL HIGHEST *//********************************************************************************* checkTaskSwitch - check to see if taskIdCurrent is still highest task** We arrive at this code either as the result of falling thru from windExit,* or if we have finished emptying the work queue.  We compare taskIdCurrent* with the highest ready task on the ready queue.  If they are same we* go to a routine to check the work queue.  If they are different and preemption* is allowed we branch to a routine to make sure that taskIdCurrent is really* ready (it may have blocked with preemption disabled).  If they are different* we save the context of taskIdCurrent and fall thru to reschedule.*/checkTaskSwitch:	movl	FUNC(taskIdCurrent),%edx	/* move taskIdCurrent to edx */	cmpl	FUNC(readyQHead),%edx		/* compare highest ready task */	je	checkWorkQ			/* if same then time to leave */	cmpl	$0,WIND_TCB_LOCK_CNT(%edx)	/* is task preemption allowed */	jne	checkTaskReady			/* if no, check task is ready */saveTaskContext:	movl	(%esp),%eax			/* save return address as PC */	movl	%eax,WIND_TCB_PC(%edx)	pushfl					/* save a eflags */	popl	WIND_TCB_EFLAGS(%edx)		bts	$9,WIND_TCB_EFLAGS(%edx)	/* set IF to enable INT */	movl	%ebx,WIND_TCB_EBX(%edx)		/* e[adc]x are volatile */	movl	%esi,WIND_TCB_ESI(%edx)	movl	%edi,WIND_TCB_EDI(%edx)	movl	%ebp,WIND_TCB_EBP(%edx)	movl	%esp,WIND_TCB_ESP(%edx)	movl	$0,WIND_TCB_EAX(%edx)		/* clear saved eax for return */	addl	$4,WIND_TCB_ESP(%edx)		/* fix up SP for no ret adrs */	pushl	FUNC(errno)			/* save errno */	popl	WIND_TCB_ERRNO(%edx)#ifdef PORTABLE	call	FUNC(reschedule)#else	/* FALL THRU TO RESCHEDULE *//********************************************************************************* reschedule - rescheduler for VxWorks kernel** This routine is called when either intExit, or windExit, thinks the* context might change.  All of the contexts of all of the tasks are* accurately stored in the task control blocks when entering this function.* The status register is 0x800f0000. (Supervisor, Stack0, Interrupts UNLOCKED)** The register %edx must contain the value of _taskIdCurrent at the entrance to* this routine.** At the conclusion of this routine, taskIdCurrent will equal the highest* priority task eligible to run, and the kernel work queue will be empty.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产一区二区精华液 | 在线观看视频一区二区| 欧美激情在线一区二区三区| 99re6这里只有精品视频在线观看| 国产伦精品一区二区三区视频青涩| 亚洲精选视频在线| 亚洲一区在线播放| 婷婷丁香激情综合| 国产剧情av麻豆香蕉精品| 国产精品一区二区免费不卡| 国产成人av资源| 欧洲视频一区二区| 欧美一区二区视频在线观看2020| 日韩欧美国产三级电影视频| 亚洲精品一区二区三区蜜桃下载 | 欧美激情在线看| 亚洲欧美区自拍先锋| 亚洲一级二级三级| 日韩精品电影在线观看| 久久av资源站| 欧美日韩日日夜夜| 国产精品欧美一区二区三区| 亚洲一区二区三区不卡国产欧美| 激情文学综合网| 欧美日韩综合不卡| 中日韩av电影| 国产麻豆成人传媒免费观看| 91国产福利在线| 久久久久久久久久看片| 视频一区国产视频| 99国产一区二区三精品乱码| 日韩女优av电影在线观看| 亚洲伊人伊色伊影伊综合网| 99这里只有久久精品视频| 精品国产免费久久| 日本女优在线视频一区二区| 色综合中文字幕| 国产精品超碰97尤物18| 丁香啪啪综合成人亚洲小说| 亚洲精品一区二区三区香蕉| 老司机精品视频导航| 欧美理论片在线| 爽好多水快深点欧美视频| 91在线云播放| 亚洲欧美日韩在线| 成人一级片在线观看| 国产精品私人自拍| 色狠狠一区二区三区香蕉| 亚洲精品国产a| 欧美一区二区三区色| 蜜桃一区二区三区在线| 欧美电影免费观看高清完整版| 精品一区二区综合| 国产精品卡一卡二| 欧美美女视频在线观看| 狠狠色丁香久久婷婷综合丁香| 国产亚洲欧美激情| 在线观看成人小视频| 免费成人av在线| 亚洲精品免费在线观看| 91精品国产综合久久久久久久| 蜜臀va亚洲va欧美va天堂| 国产亚洲欧美日韩俺去了| 色素色在线综合| 国产成a人亚洲| 亚洲电影激情视频网站| 国产视频不卡一区| 国产成人av电影在线| 日韩精品专区在线影院观看| 国内精品免费在线观看| 一区二区三区免费在线观看| 久久蜜桃一区二区| 欧美日韩小视频| av电影天堂一区二区在线观看| 午夜精品一区在线观看| 综合自拍亚洲综合图不卡区| 日韩亚洲欧美一区| 欧美日本一道本在线视频| 成人av先锋影音| 国产精品1区2区3区| 美女免费视频一区二区| 日韩在线卡一卡二| 亚洲国产精品精华液网站| 18涩涩午夜精品.www| 欧美国产精品久久| 国产精品三级视频| 中文一区在线播放| 中文字幕一区二区三区色视频| 精品播放一区二区| 久久先锋资源网| 亚洲国产精品高清| 中文字幕亚洲在| 中文字幕亚洲不卡| 亚洲成人精品一区| 久久er99热精品一区二区| 久久精品国产99国产精品| 国内精品国产成人国产三级粉色| 狠狠色狠狠色综合系列| 国产v综合v亚洲欧| 91视视频在线观看入口直接观看www | 国产不卡视频一区二区三区| 成人黄色av电影| 成人av在线一区二区| 波多野结衣中文字幕一区| gogogo免费视频观看亚洲一| 欧美日韩不卡在线| 久久久久99精品国产片| 亚洲乱码国产乱码精品精可以看 | 欧美日韩在线播放三区四区| 欧美精品亚洲二区| 国产欧美精品国产国产专区| 亚洲免费大片在线观看| 免费成人在线观看| 欧美视频日韩视频| 国产欧美日韩另类一区| 午夜视频在线观看一区二区 | 尤物在线观看一区| 国产伦精品一区二区三区免费迷| 成人av在线一区二区三区| 555www色欧美视频| 亚洲蜜臀av乱码久久精品 | 91美女片黄在线观看| 日韩欧美一二三区| 亚洲午夜三级在线| 成人一区二区三区| 精品日韩欧美在线| 亚洲精品免费在线| 视频一区二区三区中文字幕| 国产美女娇喘av呻吟久久| 欧美视频在线一区| 亚洲精品免费电影| www.66久久| 综合婷婷亚洲小说| 99久久国产综合精品麻豆| 国产日本亚洲高清| 国产精品一级在线| 国产精品你懂的在线欣赏| 国产v综合v亚洲欧| 国产精品欧美一区喷水| 不卡一区二区三区四区| 中文字幕欧美激情一区| 国产91高潮流白浆在线麻豆| 国产欧美日韩在线| 91偷拍与自偷拍精品| 一区二区三国产精华液| 欧美日韩国产综合视频在线观看| 亚洲国产精品人人做人人爽| 欧美色综合天天久久综合精品| 亚洲自拍偷拍网站| 91精品国产综合久久福利软件| 久久精品国内一区二区三区| 亚洲国产精品成人综合色在线婷婷 | 久草在线在线精品观看| 91精品国产91久久久久久一区二区| 日韩制服丝袜av| 亚洲欧洲99久久| 欧美大片一区二区| 91在线观看成人| 精品一区二区在线免费观看| 成人免费在线视频| 26uuu欧美日本| 欧美伊人久久久久久午夜久久久久| 日韩和欧美的一区| 欧美激情综合在线| 欧美一区二区三区在线看| 成人美女在线观看| 精品亚洲成a人| 欧美96一区二区免费视频| 中文字幕在线一区免费| 久久久777精品电影网影网| 欧美一级在线免费| 欧美三级一区二区| 色综合色综合色综合| 国产成人午夜精品影院观看视频 | 久久伊人蜜桃av一区二区| 欧美顶级少妇做爰| 欧美美女一区二区三区| 91视视频在线观看入口直接观看www| 精品一区二区日韩| 天堂影院一区二区| 天堂成人国产精品一区| 天天操天天干天天综合网| 亚洲精品一卡二卡| 亚洲欧洲韩国日本视频| 国产精品剧情在线亚洲| 中文字幕一区在线| 亚洲综合另类小说| 日韩精品免费视频人成| 日韩精品1区2区3区| 捆绑调教美女网站视频一区| 国产一区欧美二区| 成人午夜精品在线| 欧美日韩色综合| 欧美精品一区二区三区蜜臀| 国产精品欧美久久久久一区二区| 国产精品人成在线观看免费| 亚洲永久精品国产| 国内成人免费视频| 欧美性大战久久| 久久婷婷色综合|