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

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

?? tcc.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_TERMINATE_TASK_ID, (UNSIGNED) task,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Determine if the calling task is the current task.  */
    if (task == (TC_TCB *) TCD_Current_Thread)
    {

        /* Protect system  data structures.  */
        TCT_Protect(&TCD_System_Protect);

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpTask(task,RT_PROF_TERMINATE_TASK);
#endif /*INCLUDE_PROVIEW*/

        /* Suspend the calling task with the NU_TERMINATED status.  */
        TCC_Suspend_Task(task_ptr, NU_TERMINATED, NU_NULL, NU_NULL,
                                                            NU_SUSPEND);

        /* No need to un-protect, since control never comes back to this
           point and the protection is cleared in TCT_Control_To_System.  */
    }
    else
    {

        /* Protect scheduling structures.  */
        TCT_Protect(&TCD_System_Protect);

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpTask(task,RT_PROF_TERMINATE_TASK);
#endif /*INCLUDE_PROVIEW*/

        /* Keep trying to terminate the specified task until its status
           indicates that it is terminated or finished.  */
        while ((task -> tc_status != NU_FINISHED) &&
                  task -> tc_status != NU_TERMINATED)
        {

            /* Is the task in a ready state?  */
            if (task -> tc_status == NU_READY)
            {

                /* Terminate the specified task.  */
                TCC_Suspend_Task(task_ptr, NU_TERMINATED, NU_NULL,
                                                        NU_NULL,NU_SUSPEND);

                /* Clear system protection.  */
                TCT_Unprotect();
            }
            else
            {

                /* Task is suspended currently.  Pickup the suspension
                   protection.  */
                suspend_protect =  task -> tc_suspend_protect;

                /* Save the current status.  */
                status =           task -> tc_status;

                /* Release protection on system structures.  */
                TCT_Unprotect();

                /* Determine if there was a suspension protection.  If so
                   protect it first before the scheduling list protection.
                   This avoids a deadlock situation.  */
                if (suspend_protect)

                    /* Protect the terminated task's last suspension
                       structures.  */
                    TCT_Protect(suspend_protect);

                /* Protect the system structures again.  */
                TCT_Protect(&TCD_System_Protect);

                /* Now determine if the same suspension is in force.  */
                if ((task -> tc_status == status) &&
                    (task -> tc_suspend_protect == suspend_protect))
                {

                    /* Yes, same suspension is in force.  */

                    /* Call cleanup routine, if there is one.  */
                    if (task -> tc_cleanup)

                        /* Call cleanup function.  */
                        (*(task -> tc_cleanup)) (task -> tc_cleanup_info);

                    /* Status the task as terminated.  */
                    task -> tc_status =  NU_TERMINATED;

                    /* Determine if there is a timer active.  */
                    if (task -> tc_timer_active)
                    {

                        /* Call the stop timer function.  */
                        TMC_Stop_Task_Timer(&(task -> tc_timer_control));

                        /* Clear the timer active flag.  */
                        task -> tc_timer_active =  NU_FALSE;
                    }
                }

                /* Cleanup the protection.  */
                if (suspend_protect)
                {

                    /* Release specific protection.  */
                    TCT_Unprotect_Specific(suspend_protect);

                    /* Clear the suspend protect field.  */
                    task -> tc_suspend_protect =  NU_NULL;
                }

                /* Release current protection.  */
                TCT_Unprotect();
            }

            /* Protect the scheduling list again.  */
            TCT_Protect(&TCD_System_Protect);
        }

        /* Release the protection.  */
        TCT_Unprotect();
    }

    /* Return to user mode */
    NU_USER_MODE();

    /* Return successful completion.  */
    return(NU_SUCCESS);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TCC_Resume_Task                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function resumes a previously suspended task.  The task     */
/*      task must currently be suspended for the same reason indicated   */
/*      by this request.  If the task resumed is higher priority than    */
/*      the calling task and the current task is preemptable, this       */
/*      function returns a value of NU_TRUE.  Otherwise, if no           */
/*      preemption is required, a NU_FALSE is returned.  This routine    */
/*      must be called from Supervisor mode in a Supervisor/User mode    */
/*      switching kernel.                                                */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Other Components                                                 */
/*      TCC_Resume_Service                  Resume service function      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Set_Current_Protect             Set current protection field */
/*      TCT_Set_Execute_Task                Set TCD_Execute_Task pointer */
/*      TMC_Stop_Task_Timer                 Stop task timer              */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      task_ptr                            Task control block pointer   */
/*      suspend_type                        Type of suspension to lift   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_TRUE                             A higher priority task is    */
/*                                            ready to execute           */
/*      NU_FALSE                            No change in the task to     */
/*                                            execute                    */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      09-19-1993      Corrected an initialization                      */
/*                      problem of de-referencing a                      */
/*                      NULL pointer, resulting in                       */
/*                      version 1.0d                                     */
/*      09-19-1993      Verified version 1.0d                            */
/*      03-01-1994      Modified function interface,                     */
/*                      added register optimizations,                    */
/*                      modified protection logic to                     */
/*                      assume that system protection                    */
/*                      is already in force, resulting                   */
/*                      in version 1.1                                   */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      10-29-1997      Changed so that tc_cleanup,                      */
/*                      tc_cleanup_info, and                             */
/*                      tc_suspend_protect are cleared                   */
/*                      only if a signal is not active                   */
/*                      (SPR115)                                         */
/*      03-20-1998      Corrected SPR455.                                */
/*                                                                       */
/*************************************************************************/
STATUS  TCC_Resume_Task(NU_TASK *task_ptr, OPTION suspend_type)
{

R1 TC_TCB      *task;                       /* Task control block ptr    */
R2 TC_TCB      *head;                       /* Pointer to priority list  */
STATUS          status =  NU_FALSE;         /* Status variable           */

    /* Move task pointer into internal pointer.  */
    task =  (TC_TCB *) task_ptr;


#ifdef  NU_ENABLE_STACK_CHECK

    /* Call stack checking function to check for an overflow condition.  */
    TCT_Check_Stack();

#endif


    /* Check to see if the task is suspended for the reason that this
       resume is attempting to clear.  */
    if (task -> tc_status == suspend_type)
    {

        /* Yes, this resume call is valid.  */

        /* If signals are not active, clear any suspend or cleanup
           information (SPR115).  */
        if (!task -> tc_signal_active)
        {
            task -> tc_suspend_protect =        NU_NULL;
            task -> tc_cleanup =                NU_NULL;
            task -> tc_cleanup_info =           NU_NULL;
        }

        /* Determine if there is a timer active and the task is not being
           resumed to handle a signal.  */
        if ((task -> tc_timer_active) && (!task -> tc_signal_active))
        {

            /* Call the stop timer function.  */
            TMC_Stop_Task_Timer(&(task -> tc_timer_control));

            /* Clear the timer active flag.  */
            task -> tc_timer_active =  NU_FALSE;
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99精品视频| 欧美国产精品一区二区三区| 亚洲bt欧美bt精品777| 成人夜色视频网站在线观看| 久久蜜桃av一区二区天堂| 国产真实乱对白精彩久久| 久久影院午夜片一区| 国产精品一区免费视频| 欧美国产成人精品| 日本久久电影网| 韩国v欧美v日本v亚洲v| 久久久91精品国产一区二区三区| 激情综合色综合久久综合| 国产亚洲欧美日韩日本| 91丝袜美女网| 视频一区在线播放| 久久久久青草大香线综合精品| 懂色一区二区三区免费观看| 一区二区三区影院| 日韩欧美你懂的| 成人avav在线| 天天综合日日夜夜精品| 欧美大片一区二区| 成人午夜私人影院| 亚洲国产精品一区二区www | 精品一区二区国语对白| 国产欧美一区二区三区沐欲| 91国产视频在线观看| 九九视频精品免费| 中文字幕在线视频一区| 欧美一区午夜视频在线观看| 国产电影一区在线| 亚洲成人激情自拍| 国产欧美视频在线观看| 欧美日韩精品福利| 成人教育av在线| 久久精品久久99精品久久| 亚洲欧洲av在线| 精品久久久久久综合日本欧美| 99精品国产99久久久久久白柏 | 91精品国产黑色紧身裤美女| 国产精品白丝在线| 91麻豆精品国产91久久久 | 国产精品久久久久久久久动漫 | 色偷偷成人一区二区三区91| 看电视剧不卡顿的网站| 一区二区三区不卡视频在线观看| 2020国产成人综合网| 欧美日韩精品一区二区天天拍小说| 国产精品99久久久久| 日本欧美一区二区| 亚洲激情五月婷婷| 国产精品无遮挡| 久久亚洲春色中文字幕久久久| 欧美午夜影院一区| www.爱久久.com| 精品一区二区三区的国产在线播放| 一二三四社区欧美黄| 国产蜜臀av在线一区二区三区| 欧美一级在线免费| 欧美日韩成人高清| 在线观看国产91| 91老司机福利 在线| 成人看片黄a免费看在线| 激情五月激情综合网| 天堂在线一区二区| 婷婷开心激情综合| 午夜精品久久久久久久99水蜜桃| 亚洲伊人伊色伊影伊综合网| 综合色天天鬼久久鬼色| 国产精品视频一区二区三区不卡| 国产婷婷色一区二区三区四区| 日韩女优电影在线观看| 日韩三级电影网址| 欧美一区二区视频在线观看2020| 精品视频在线免费| 欧洲日韩一区二区三区| 欧美性大战久久久| 欧美精品v日韩精品v韩国精品v| 色婷婷av一区二区三区软件| 91在线观看地址| 91免费国产视频网站| 91麻豆国产精品久久| 色哟哟日韩精品| 欧美日韩午夜精品| 91 com成人网| 日韩欧美国产麻豆| 久久精品网站免费观看| 国产精品毛片高清在线完整版| 中国av一区二区三区| 国产亚洲一本大道中文在线| 国产欧美va欧美不卡在线| 国产精品久久久久精k8| 中文字幕一区二区三区蜜月| 伊人色综合久久天天人手人婷| 亚洲成人激情综合网| 毛片av中文字幕一区二区| 国产九色精品成人porny| 成人免费av在线| 在线观看日韩高清av| 欧美一区二区三区四区五区| 日韩一区二区电影| 久久人人超碰精品| 成人免费小视频| 午夜欧美视频在线观看| 国产精品一区在线观看乱码 | 久久久国产午夜精品| 日本一区二区三区四区| 一区二区三区不卡视频| 免费观看在线综合色| 成人性视频网站| 欧美日韩在线一区二区| 久久综合色8888| 亚洲免费高清视频在线| 美国三级日本三级久久99 | 亚洲欧美日韩国产中文在线| 亚洲18女电影在线观看| 国产在线一区二区综合免费视频| 99这里只有久久精品视频| 制服丝袜中文字幕亚洲| 欧美激情一区在线观看| 日韩电影在线看| 97se亚洲国产综合在线| 日韩欧美国产综合| 亚洲精品国产品国语在线app| 美女视频一区二区三区| 99免费精品视频| 欧美本精品男人aⅴ天堂| 亚洲精品视频免费看| 国精产品一区一区三区mba桃花| 色噜噜狠狠成人网p站| 精品毛片乱码1区2区3区| 亚洲成av人片在线观看| 大桥未久av一区二区三区中文| 51精品视频一区二区三区| 中文字幕av一区二区三区高| 蜜臀久久久99精品久久久久久| 99精品视频在线免费观看| 精品国产三级a在线观看| 亚洲午夜精品久久久久久久久| 国产99久久久精品| 日韩一区二区麻豆国产| 香蕉成人伊视频在线观看| 成人sese在线| 久久久国产精品麻豆| 久88久久88久久久| 欧美喷水一区二区| 亚洲黄一区二区三区| 成人免费高清视频| 久久女同性恋中文字幕| 麻豆视频观看网址久久| 欧美绝品在线观看成人午夜影视| 中文字幕五月欧美| 丁香婷婷综合激情五月色| 26uuu久久天堂性欧美| 免费观看一级欧美片| 欧美丰满少妇xxxxx高潮对白| 一区二区三区国产精华| 97精品久久久午夜一区二区三区| 国产亚洲精品久| 国产成人精品综合在线观看| 欧美va亚洲va国产综合| 免费成人你懂的| 欧美一区二区三区在线看| 日韩电影网1区2区| 8v天堂国产在线一区二区| 亚洲国产精品欧美一二99| 欧美无砖专区一中文字| 亚洲成人黄色小说| 欧美日韩一区 二区 三区 久久精品| 伊人开心综合网| 欧美日精品一区视频| 午夜av电影一区| 在线综合亚洲欧美在线视频| 亚欧色一区w666天堂| 欧美精品久久久久久久久老牛影院| 亚洲国产成人av好男人在线观看| 欧美日韩的一区二区| 日韩av中文字幕一区二区三区 | 国产在线观看免费一区| 精品久久久久久综合日本欧美 | 美腿丝袜亚洲一区| 精品va天堂亚洲国产| 国产精品18久久久久| 国产精品久久久久影院老司| 9l国产精品久久久久麻豆| 亚洲影院理伦片| 91精品午夜视频| 黑人精品欧美一区二区蜜桃| 国产欧美一区在线| 日本久久一区二区三区| 奇米亚洲午夜久久精品| 久久免费午夜影院| 成人激情文学综合网| 一区二区三区免费网站| 在线观看91av| 成人在线视频首页| 亚洲自拍都市欧美小说| 日韩欧美高清在线| 99国产精品久久|