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

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

?? tx_tcr.68

?? ThreadX優秀的硬實時操作系統.This Express Start Guide is designed to help you install and use ThreadX for the
?? 68
字號:
/**************************************************************************/ 
/*                                                                        */ 
/*            Copyright (c) 1996-2000 by Express Logic Inc.               */ 
/*                                                                        */ 
/*  This software is copyrighted by and is the sole property of Express   */ 
/*  Logic, Inc.  All rights, title, ownership, or other interests         */ 
/*  in the software remain the property of Express Logic, Inc.  This      */ 
/*  software may only be used in accordance with the corresponding        */ 
/*  license agreement.  Any unauthorized use, duplication, transmission,  */ 
/*  distribution, or disclosure of this software is expressly forbidden.  */ 
/*                                                                        */
/*  This Copyright notice may not be removed or modified without prior    */ 
/*  written consent of Express Logic, Inc.                                */ 
/*                                                                        */ 
/*  Express Logic, Inc. reserves the right to modify this software        */ 
/*  without notice.                                                       */ 
/*                                                                        */ 
/*  Express Logic, Inc.                                                   */
/*  11440 West Bernardo Court               info@expresslogic.com         */
/*  Suite 366                               http://www.expresslogic.com   */
/*  San Diego, CA  92127                                                  */
/*                                                                        */
/**************************************************************************/


/**************************************************************************/
/**************************************************************************/
/**                                                                       */ 
/** ThreadX Component                                                     */ 
/**                                                                       */
/**   Thread Control (THR)                                                */
/**                                                                       */
/**************************************************************************/
/**************************************************************************/


/* #define    TX_SOURCE_CODE  */


/* Include necessary system files.  */

/*  #include   "tx_api.h"
    #include   "tx_thr.h"
    #include   "tx_tim.h"  */


    XREF    _tx_thread_system_state
    XREF    _tx_thread_current_ptr
    XREF    _tx_thread_system_stack_ptr
    XREF    _tx_thread_execute_ptr
    XREF    _tx_timer_time_slice
    XREF    _tx_thread_schedule
    XREF    _tx_thread_special_nest
    XREF    _tx_thread_preempt_disable
#ifdef  TX_ENABLE_EVENT_LOGGING
	XREF	_tx_el_thread_preempted
#endif


	SECT    .text,x
    ALIGN   4
/**************************************************************************/ 
/*                                                                        */ 
/*  FUNCTION                                               RELEASE        */ 
/*                                                                        */ 
/*    _tx_thread_context_restore                      68332/Green Hills   */ 
/*                                                           3.0a         */ 
/*  AUTHOR                                                                */ 
/*                                                                        */ 
/*    William E. Lamie, Express Logic, Inc.                               */ 
/*                                                                        */ 
/*  DESCRIPTION                                                           */ 
/*                                                                        */ 
/*    This function restores the interrupt context if it is processing a  */ 
/*    nested interrupt.  If not, it returns to the interrupt thread if no */ 
/*    preemption is necessary.  Otherwise, if preemption is necessary or  */ 
/*    if no thread was running, the function returns to the scheduler.    */ 
/*                                                                        */ 
/*  INPUT                                                                 */ 
/*                                                                        */ 
/*    None                                                                */ 
/*                                                                        */ 
/*  OUTPUT                                                                */ 
/*                                                                        */ 
/*    None                                                                */ 
/*                                                                        */ 
/*  CALLS                                                                 */ 
/*                                                                        */ 
/*    _tx_thread_schedule                   Thread scheduling routine     */ 
/*                                                                        */ 
/*  CALLED BY                                                             */ 
/*                                                                        */ 
/*    ISRs                                  Interrupt Service Routines    */ 
/*                                                                        */ 
/*  RELEASE HISTORY                                                       */ 
/*                                                                        */ 
/*    DATE              NAME                      DESCRIPTION             */ 
/*                                                                        */ 
/*  09-07-1999     William E. Lamie         Initial Version 3.0           */ 
/*  12-02-1999     William E. Lamie         Modified comment(s), and      */ 
/*                                            added optional event        */ 
/*                                            logging for preemption,     */ 
/*                                            resulting in version 3.0a.  */ 
/*                                                                        */ 
/**************************************************************************/ 
/* VOID   _tx_thread_context_restore(VOID)
{  */
    XDEF    _tx_thread_context_restore
_tx_thread_context_restore:

    /* Lockout interrupts.  */

    ori.w   #$0700,%SR                          ; Lockout interrupts

    /* Determine if interrupts are nested.  */
    /* if (--_tx_thread_system_state)
    {  */

    subq.l  #1,_tx_thread_system_state          ; Decrement the system state
                                        /*      ;   (Nested interrupt count)  */
    beq.s   __tx_thread_not_nested_restore      ; Not a pure nested restore

    /* Interrupts are nested.  */

    /* Just recover the saved registers and return to the point of 
       interrupt.  */

    movem.l (%A7)+,%D0-%D1/%A0-%A1              ; Recover saved registers
    addq.l  #6,%A7                              ; Position past scratch area
    rte                                         ; Return to point of interrupt

    /* }  */
__tx_thread_not_nested_restore:

    /* Determine if a thread was interrupted and no preemption is required.  */
    /* else if ((_tx_thread_current_ptr) && (_tx_thread_current_ptr == _tx_thread_execute_ptr))
    {  */

    move.l  _tx_thread_current_ptr,%D0          ; Pickup current thread pointer
    beq     __tx_thread_idle_system_restore     ; If NULL, an idle system restore is present

    /* For 68K targets, check for special nesting condition.  */

    movea.l %D0,%A0                             ; Setup thread control block pointer 
    tst.b   _tx_thread_special_nest             ; Is a special nesting condition present?
    bne     __tx_thread_special_restore         ; Special thread restore from this
                                        /*      ;   kind of nesting  */
    tst.l   _tx_thread_preempt_disable          ; See if preemption is disabled
    bne     __tx_thread_no_preempt_restore      ; Yes, allways restore back to interrupted 
                                        /*      ;   thread  */
    cmp.l   _tx_thread_execute_ptr,%D0          ; See if preemption needs to happen
    bne     __tx_thread_preempt_restore         ; If not the same, preemption needs
                                        /*      ;   to happen  */
__tx_thread_special_restore:
__tx_thread_no_preempt_restore:

    /* Restore interrupted thread or ISR.  */

    /* Pickup the saved stack pointer.  */
    /* tmp_ptr =  _tx_thread_current_ptr -> tx_stack_ptr;  */

    movea.l 8(%A0),%A7                          ; Switch back to thread's stack

	/* Recover the saved context and return to the point of interrupt.  */

    movem.l (%A7)+,%D0-%D1/%A0-%A1              ; Recover saved registers
    addq.l  #6,%A7                              ; Position past the scratch area 
                                        /*      ;   the interrupt stack  */
    rte                                         ; Return to point of interrupt
    /* }
    else
    {  */
__tx_thread_preempt_restore:

    movea.l 8(%A0),%A7                          ; Switch back to thread's stack
    move.l  %A7,%D0                             ; Save the final sp before we lose pointer
    subi.l  #46,%D0                             ; Number of bytes to store the whole 
                                        /*      ;   interrupt frame  */
    move.l  %D0,8(%A0)                          ; Save final stack pointer in thread's
                                        /*      ;   control block  */

#ifdef  TX_ENABLE_EVENT_LOGGING
	move.l	%A0,-(%A7)							; Save thread control block pointer
	move.l	%A0,-(%A7)							; Place thread control block as parameter
	jsr		_tx_el_thread_preempted				; Call event logging
	addq	#4,%A7								; Adjust past input parameter
	move.l	(%A7)+,%A0							; Recover thread control block pointer
#endif

    /* Save the remaining time-slice and disable it.  */
    /* if (_tx_timer_time_slice)
    {  */

    move.l  _tx_timer_time_slice,%D0            ; Pickup current time-slice
    beq     __tx_thread_dont_save_ts            ; If 0, don't save the current time-slice

        /* _tx_thread_current_ptr -> tx_time_slice =  _tx_timer_time_slice;
        _tx_timer_time_slice =  0;  */

    move.l  %D0,24(%A0)                         ; Save time-slice for equality
    clr.l   _tx_timer_time_slice                ; Disable time-slice

    /* }  */
__tx_thread_dont_save_ts:

    /* Recover previously saved registers and then save the entire interrupt
       frame on the thread's stack.  */

    movem.l (%A7)+,%D0-%D1/%A0-%A1              ; Recover previously saved registers
    movem.l %D0-%D7/%A0-%A6,-(%A7)              ; Save all registers together
    move.w  #1,-(%A7)                           ; Place stack type on the stack
    movea.l _tx_thread_system_stack_ptr,%A7	    ; Switch to system stack pointer

    /* Clear the current task pointer.  */
    /* _tx_thread_current_ptr =  TX_NULL;  */

    clr.l   _tx_thread_current_ptr              ; Set current thread pointer to NULL

    /* Return to the scheduler.  */
    /* _tx_thread_schedule();  */

    jmp     _tx_thread_schedule                 ; Return to scheduling loop
    /* }  */

__tx_thread_idle_system_restore:

    /* Make a quick check for the special nesting condition that can
       occur on 68K targets.  */

    tst.b   _tx_thread_special_nest             ; Is special nesting present?
    bne     __tx_thread_idle_special_restore    ; Yes, skip to the idle system
                                        /*      ;   restore processing  */
    jmp     _tx_thread_schedule                 ; Else, just return to scheduler
__tx_thread_idle_special_restore:
    movem.l	(%A7)+,%D0-%D1/%A0-%A1              ; Recover saved registers
    addq.l  #6,%A7                              ; Position past the scratch area 
                                        /*      ;   on interrupt stack  */
    rte                                         ; Return to point of interrupt
/* }  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品久久久蜜桃| 中文字幕一区二区三区在线播放| 成人丝袜高跟foot| 国产一区二区三区在线看麻豆| 亚洲成a人v欧美综合天堂| 亚洲国产精品一区二区久久恐怖片| 国产精品久久久久久久蜜臀| 国产欧美精品一区二区色综合朱莉| 久久婷婷成人综合色| 亚洲国产精品v| 国产精品传媒在线| 亚洲午夜在线电影| 天天综合色天天| 老司机精品视频导航| 国产精品原创巨作av| av亚洲精华国产精华精| 91麻豆蜜桃一区二区三区| 欧美色综合影院| 国产精品亚洲午夜一区二区三区| 欧美变态tickling挠脚心| 日韩一区二区精品| 久久精品视频一区二区| 国产精品久久久久久久久免费桃花| 国产精品国产三级国产aⅴ入口| 亚洲精品国久久99热| 日韩精品久久理论片| 国产精品91一区二区| 91麻豆福利精品推荐| 7777精品伊人久久久大香线蕉超级流畅| 日韩久久久精品| 国产精品网站在线观看| 国产白丝精品91爽爽久久| 色哟哟精品一区| 欧美r级在线观看| 亚洲人快播电影网| 美国十次了思思久久精品导航| 国产jizzjizz一区二区| 666欧美在线视频| 中文字幕一区二区不卡| 七七婷婷婷婷精品国产| 色婷婷av一区| 国产欧美日韩激情| 秋霞av亚洲一区二区三| 色综合色狠狠天天综合色| 日韩欧美国产麻豆| 亚洲精品免费在线观看| 国产二区国产一区在线观看 | 日本韩国欧美在线| 欧美精品一区二区在线观看| 一区二区三区在线免费播放| 久久精品国产99国产| 欧美无砖专区一中文字| 亚洲国产精品高清| 国产麻豆视频一区二区| 日韩一级视频免费观看在线| 亚洲国产你懂的| 一本到高清视频免费精品| 国产日产欧产精品推荐色| 日本网站在线观看一区二区三区| 91丝袜美腿高跟国产极品老师| 久久免费看少妇高潮| 日韩av一二三| 欧美美女一区二区| 亚洲国产日韩一区二区| 91久久精品午夜一区二区| 欧美激情一区二区三区蜜桃视频| 久久成人精品无人区| 91精品免费在线| 日韩中文字幕一区二区三区| 欧美三级电影一区| 亚洲成a天堂v人片| 欧洲另类一二三四区| 一区二区三区四区激情| 欧美最猛性xxxxx直播| 亚洲在线视频免费观看| 在线观看一区二区精品视频| 亚洲精品精品亚洲| 欧美日韩一级二级| 日韩va亚洲va欧美va久久| 日韩欧美一区在线| 精品一区二区影视| 久久久久久久性| 波多野结衣亚洲| 亚洲免费色视频| 欧美精品久久99| 麻豆久久久久久| 国产亚洲美州欧州综合国| 国产99久久久精品| 亚洲色图另类专区| 欧美日产国产精品| 麻豆91在线播放免费| 久久久久久久久久久黄色| 国产91精品露脸国语对白| 亚洲天堂福利av| 69久久99精品久久久久婷婷 | 国产午夜精品美女毛片视频| 国产成人一级电影| 日韩毛片在线免费观看| 欧美精品123区| 国产精品资源站在线| 综合久久久久综合| 欧美一区二区视频网站| 国产精品夜夜爽| 亚洲一级在线观看| 国产婷婷色一区二区三区四区| 成人av在线一区二区| 亚洲国产精品综合小说图片区| 日韩视频在线你懂得| 99热精品一区二区| 免费一级片91| 亚洲精品亚洲人成人网 | 国产精品一区二区免费不卡| 亚洲天堂2016| 欧美成人在线直播| 在线一区二区视频| 国产999精品久久久久久| 亚洲成人高清在线| 国产嫩草影院久久久久| 日韩视频一区在线观看| 96av麻豆蜜桃一区二区| 久久草av在线| 日韩黄色一级片| 亚洲免费电影在线| 久久嫩草精品久久久精品一| 欧美人与z0zoxxxx视频| 91一区二区在线观看| 久久不见久久见免费视频1| 夜夜嗨av一区二区三区中文字幕| 国产区在线观看成人精品| 7777精品伊人久久久大香线蕉经典版下载 | 91免费看视频| 国产高清成人在线| 久久99国产精品免费网站| 亚洲一区二区av在线| 亚洲丝袜精品丝袜在线| 国产日韩成人精品| 26uuuu精品一区二区| 欧美成人在线直播| 欧美一区二区在线观看| 欧美日韩免费观看一区二区三区| 成人黄色a**站在线观看| 国产精品一区免费视频| 精彩视频一区二区三区| 久久精品国产久精国产| 日韩在线一区二区| 日日骚欧美日韩| 日韩va欧美va亚洲va久久| 午夜久久久久久| 婷婷综合在线观看| 亚洲成精国产精品女| 石原莉奈在线亚洲三区| 丝瓜av网站精品一区二区| 亚洲一区二区三区中文字幕在线 | 欧美日韩美女一区二区| 色综合欧美在线视频区| 色拍拍在线精品视频8848| 99视频一区二区| 在线观看国产日韩| 欧美日韩卡一卡二| 91精品福利在线一区二区三区| 欧美日韩国产bt| 日韩精品一区二区三区四区| www国产成人免费观看视频 深夜成人网| 日韩精品一区二区三区视频播放 | 中文字幕一区免费在线观看 | 一区二区视频免费在线观看| 亚洲国产欧美在线人成| 日韩一区精品字幕| 蜜桃精品在线观看| 国产福利精品导航| 99久久伊人精品| 国产精品免费av| 亚洲欧美日韩综合aⅴ视频| 一区二区三区四区五区视频在线观看| 亚洲人精品一区| 日本免费新一区视频| 国产乱人伦精品一区二区在线观看 | 一区二区三区日韩欧美精品 | 91精品国产综合久久久久久| 26uuu国产电影一区二区| 综合色天天鬼久久鬼色| 日本午夜精品视频在线观看| 国产精品亚洲综合一区在线观看| 91视频在线看| 日韩一区二区三区电影| 国产婷婷一区二区| 亚洲综合免费观看高清完整版在线| 日韩av一二三| 99久久夜色精品国产网站| 欧美一区二区三区免费大片| 国产精品高清亚洲| 美女性感视频久久| 一本大道久久a久久精二百| 日韩欧美视频在线| 亚洲黄色小视频| 国产乱妇无码大片在线观看| 欧美三级视频在线播放| 国产精品免费观看视频| 看片的网站亚洲| 欧美视频精品在线观看|