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

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

?? tcc.c

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


#ifdef  NU_ENABLE_STACK_CHECK

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

#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_CREATE_HISR_ID, (UNSIGNED) hisr,
                                (UNSIGNED) name, (UNSIGNED) hisr_entry);

#endif

    /* First, clear the HISR ID just in case it is an old HISR
       Control Block.  */
    hisr -> tc_id =             0;

    /* Fill in the HISR name.  */
    for (i = 0; i < NU_MAX_NAME; i++)
        hisr -> tc_name[i] =  name[i];

    /* Fill in the basic HISR information.  */
    hisr -> tc_entry =                  hisr_entry;
    hisr -> tc_scheduled =              0;
    hisr -> tc_activation_count =       0;
    hisr -> tc_cur_time_slice =         0;

    /* Fill in information about the HISR's stack.  */
    hisr -> tc_stack_start =            stack_address;
    hisr -> tc_stack_end =              0;
    hisr -> tc_stack_size =             stack_size;
    hisr -> tc_stack_minimum =          stack_size;

    /* Setup priority information for the HISR.  Priorities range from 0 to
       TC_HISR_PRIORITIES - 1.  */
    hisr -> tc_priority =               priority & 3;

    /* Initialize link pointers.  */
    hisr -> tc_created.cs_previous =    NU_NULL;
    hisr -> tc_created.cs_next =        NU_NULL;
    hisr -> tc_active_next =            NU_NULL;

    /* Clear protect pointer.  */
    hisr -> tc_current_protect =        NU_NULL;

    /* Initialize additional kernel options data */
#if (NU_SUPERV_USER_MODE == 1)
    hisr->tc_su_mode = 1;                   /* TCT_HISR_Shell in Supervisor mode */
    hisr->tc_module = 0;                    /* Not initially bound to a module */
#endif

    /* Build a stack frame for this HISR by calling TCT_Build_HISR_Stack.  */
    TCT_Build_HISR_Stack(hisr);

    /* Protect the list of created HISRs.  */
    TCT_Protect(&TCD_HISR_Protect);

    /* At this point the HISR is completely built.  The ID can now be
       set and it can be linked into the created HISR list.  */
    hisr -> tc_id =                     TC_HISR_ID;

#if defined(NU_MODULE_SUPPORT) && (NU_MODULE_SUPPORT > 0)
    /* If executing in a thread's context, bind to that thread's module */
    if(TCD_Current_Thread != NU_NULL)
    {
        status = MSC_Bind_Module_HISR(
          (MS_MODULE*)(((TC_TCB*)(TCD_Current_Thread))->tc_module), hisr);
    }
    else /* It must be initialization time, so use the current module */
    {
        status = MSC_Bind_Module_HISR(msd_current_module, hisr);
    }
#endif /* NU_MODULE_SUPPORT */

    /* Link the HISR into the list of created HISRs and increment the
       total number of HISRs in the system.  */
    CSC_Place_On_List(&TCD_Created_HISRs_List, &(hisr -> tc_created));
    TCD_Total_HISRs++;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpHisr(hisr,RT_PROF_CREATE_HISR);
#endif

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

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TCC_Delete_Task                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function deletes a task and removes it from the list of     */
/*      created tasks.  It is assumed by this function that the task is  */
/*      in a finished or terminated state.  Note that this function      */
/*      does not free memory associated with the task's control block or */
/*      its stack.  This is the responsibility of the application.       */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      TCCE_Delete_Task                    Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Remove_From_List                Remove node from list        */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Protect created task list    */
/*      TCT_Unprotect                       Release protection of list   */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      task_ptr                            Task control block pointer   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      added register optimizations,                    */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  TCC_Delete_Task(NU_TASK *task_ptr)
{

R1 TC_TCB  *task;                           /* Task control block ptr    */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */
    NU_SUPERVISOR_MODE();

    /* Move input 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

#ifdef  NU_ENABLE_HISTORY

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

#endif

    /* Protect the list of created tasks.  */
    TCT_Protect(&TCD_List_Protect);

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

    /* Remove the task from the list of created tasks.  */
    CSC_Remove_From_List(&TCD_Created_Tasks_List, &(task -> tc_created));

    /* Decrement the total number of created tasks.  */
    TCD_Total_Tasks--;

    /* Clear the task ID just in case.  */
    task -> tc_id =  0;

    /* Release protection.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TCC_Delete_HISR                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function deletes a HISR and removes it from the list of     */
/*      created HISRs.  It is assumed by this function that the HISR is  */
/*      in a non-active state.  Note that this function does not free    */
/*      memory associated with the HISR's control block or its stack.    */
/*      This is the responsibility of the application.                   */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      TCCE_Delete_HISR                    Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Remove_From_List                Remove node from list        */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Protect created HISR list    */
/*      TCT_Unprotect                       Release protection of list   */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      hisr_ptr                            HISR control block pointer   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      added register optimizations,                    */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  TCC_Delete_HISR(NU_HISR *hisr_ptr)
{

R1 TC_HCB  *hisr;                           /* HISR control block ptr    */
NU_SUPERV_USER_VARIABLES

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲高清免费观看| 久久日韩粉嫩一区二区三区| 欧洲精品一区二区三区在线观看| 欧美日韩精品三区| 久久久午夜电影| 一区二区免费在线| 国产成人精品一区二区三区四区| 色哟哟日韩精品| 久久一二三国产| 天堂va蜜桃一区二区三区| av电影在线观看一区| 精品国产网站在线观看| 午夜亚洲福利老司机| 91麻豆产精品久久久久久| 日本一区二区三区四区| 久久精品国产精品亚洲综合| 色老头久久综合| 国产精品欧美综合在线| 韩国成人在线视频| 欧美一级电影网站| 亚洲欧美日韩一区| 播五月开心婷婷综合| 中文字幕免费不卡在线| 国产ts人妖一区二区| 久久久99久久精品欧美| 国产一区二区美女诱惑| 精品99一区二区三区| 丝袜美腿亚洲综合| 欧美肥胖老妇做爰| 视频一区二区三区中文字幕| 欧美高清精品3d| 亚洲欧美电影一区二区| 欧美国产综合一区二区| 国产一区二区导航在线播放| 欧美电影免费观看高清完整版在 | 色香蕉成人二区免费| 欧美激情艳妇裸体舞| 国产91丝袜在线观看| 中文字幕av资源一区| 99精品一区二区三区| 国产精品不卡在线| 91蜜桃婷婷狠狠久久综合9色| 亚洲天天做日日做天天谢日日欢| 成人app在线观看| 亚洲天堂免费看| 欧美性极品少妇| 日本不卡123| 久久久久高清精品| caoporn国产精品| 亚洲在线成人精品| 91精品视频网| 国产一区二区免费在线| 国产精品麻豆网站| 色婷婷久久一区二区三区麻豆| 一区二区三区中文在线观看| 中文字幕在线一区| 久久免费电影网| 国产激情精品久久久第一区二区| 欧美激情自拍偷拍| 色综合久久中文字幕综合网| 舔着乳尖日韩一区| 久久色在线视频| 97se亚洲国产综合自在线| 亚洲国产色一区| 26uuu另类欧美亚洲曰本| 99精品视频在线免费观看| 亚洲777理论| 亚洲国产精品成人综合| 91成人国产精品| 国产一区二区精品久久| 一区二区三区精品| 日韩精品一区二区三区在线播放| 丁香一区二区三区| 天天免费综合色| 国产精品久久久久久久久免费丝袜 | 91麻豆精品国产91久久久| 国产精品99精品久久免费| 亚洲欧美成aⅴ人在线观看| 欧美一区二区三区视频免费| 成人福利视频在线看| 一区二区三区在线视频播放| 欧美tickling网站挠脚心| 91丝袜国产在线播放| 精品一区二区免费看| 伊人性伊人情综合网| 久久精品亚洲麻豆av一区二区 | 欧美一级二级在线观看| 91影院在线免费观看| 久久99这里只有精品| 亚洲黄一区二区三区| 久久久久久久免费视频了| 欧洲一区二区三区在线| 国产不卡高清在线观看视频| 青青草国产精品亚洲专区无| 一区二区三区欧美视频| 国产女主播视频一区二区| 日韩一区二区精品在线观看| 欧美性xxxxxx少妇| 91视频你懂的| 成人精品小蝌蚪| 国产精品69久久久久水密桃| 免费观看一级欧美片| 婷婷夜色潮精品综合在线| 亚洲午夜在线观看视频在线| 亚洲男女一区二区三区| 国产精品久久久久影院亚瑟| 久久精品欧美日韩精品| 欧美va亚洲va| 欧美成人vps| 欧美大片顶级少妇| 欧美精品精品一区| 欧美日韩国产综合草草| 欧美性生活影院| 欧美影院精品一区| 欧美日韩一区中文字幕| 欧美性生活影院| 欧美美女喷水视频| 911精品国产一区二区在线| 欧美日韩欧美一区二区| 欧美日韩国产系列| 在线综合亚洲欧美在线视频 | 色香蕉成人二区免费| 在线观看亚洲精品视频| 在线观看av不卡| 欧美日韩电影在线播放| 欧美丰满嫩嫩电影| 欧美成人一区二区三区片免费| 91精品国产综合久久精品性色 | 色综合久久综合| 欧美午夜不卡在线观看免费| 欧美日韩免费视频| 日韩视频免费观看高清完整版在线观看 | 亚洲高清中文字幕| 天堂在线亚洲视频| 精品亚洲国产成人av制服丝袜| 国产成人综合在线观看| 欧美日本视频在线| 99在线视频精品| 欧美三级电影在线观看| 91精品国产入口在线| 日韩视频在线你懂得| 中文幕一区二区三区久久蜜桃| 亚洲色图色小说| 日本免费新一区视频| 国产剧情一区二区| 91久久香蕉国产日韩欧美9色| 欧美日本国产视频| 久久一区二区视频| 亚洲已满18点击进入久久| 免费在线观看日韩欧美| 不卡的av中国片| 欧美日韩免费电影| 久久久美女毛片| 亚洲国产欧美一区二区三区丁香婷| 美国欧美日韩国产在线播放| 成人app网站| 日韩一级在线观看| 亚洲日本欧美天堂| 黑人巨大精品欧美黑白配亚洲| 国产精品一区二区久久精品爱涩| 高清免费成人av| 欧美区在线观看| 国产精品网站导航| 日本不卡视频一二三区| www.欧美精品一二区| 欧美另类videos死尸| 中文字幕不卡在线观看| 日韩专区在线视频| 91麻豆国产在线观看| 精品国产乱码久久久久久夜甘婷婷| 中文字幕亚洲欧美在线不卡| 麻豆国产一区二区| 欧美日韩一区不卡| 亚洲欧美一区二区视频| 激情都市一区二区| 91麻豆精品国产综合久久久久久 | 在线观看视频91| 久久久精品国产免大香伊| 五月天丁香久久| 在线日韩国产精品| 国产精品久久久久7777按摩| 九九九久久久精品| 日韩欧美一级二级| 午夜精品久久久久久久久久久| av在线不卡电影| 国产精品理论片| 大白屁股一区二区视频| 国产亚洲精品资源在线26u| 自拍偷拍国产精品| 亚洲综合免费观看高清完整版| 国产一区久久久| 日韩精品一区国产麻豆| 蜜桃视频在线观看一区二区| 欧美日韩中文国产| 一区二区三区精品| 色视频一区二区| 亚洲精品乱码久久久久久日本蜜臀| av动漫一区二区| 亚洲欧美日韩综合aⅴ视频| 91啪亚洲精品|