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

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

?? tcc.c

?? nucleus plus ARM9 source code
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               Copyright Mentor Graphics Corporation 2002              */
/*                         All Rights Reserved.                          */
/*                                                                       */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS  */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS   */
/* SUBJECT TO LICENSE TERMS.                                             */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                               VERSION       */
/*                                                                       */
/*      tcc.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      TC - Thread Control                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the core routines for the Thread Control      */
/*      component.                                                       */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      TCC_Create_Task                     Create a task                */
/*      TCC_Delete_Task                     Delete a task                */
/*      TCC_Create_HISR                     Create HISR                  */
/*      TCC_Delete_HISR                     Delete HISR                  */
/*      TCC_Reset_Task                      Reset the specified task     */
/*      TCC_Terminate_Task                  Terminate the specified task */
/*      TCC_Resume_Task                     Resume a task                */
/*      TCC_Resume_Service                  Resume a task service call   */
/*      TCC_Suspend_Task                    Suspend a task               */
/*      TCC_Suspend_Service                 Suspend a task service call  */
/*      TCC_Task_Timeout                    Task timeout function        */
/*      TCC_Task_Sleep                      Task sleep request           */
/*      TCC_Relinquish                      Relinquish task execution    */
/*      TCC_Time_Slice                      Process task time-slice      */
/*      TCC_Current_Task_Pointer            Retrieve current task pointer*/
/*      TCC_Current_HISR_Pointer            Retrieve current HISR pointer*/
/*      TCC_Task_Shell                      Task execution shell         */
/*      TCC_Signal_Shell                    Signal execution shell       */
/*      TCC_Dispatch_LISR                   Dispatch LISR routine        */
/*      TCC_Register_LISR                   Register an LISR             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      in_extr.h                           Initialization/Interrupt     */
/*                                            functions                  */
/*      tm_extr.h                           Timer Control function       */
/*      er_extr.h                           Error handling function      */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      05-15-1993      Corrected comment problems in                    */
/*                      TCC_Control_Signals and                          */
/*                      TCC_Register_Signal_Handler,                     */
/*                      making version 1.0a                              */
/*      05-15-1993      Verified version 1.0a                            */
/*      06-01-1993      Modified a multi-line comment                    */
/*                      after a #include directive                       */
/*                      that gave some compilers a                       */
/*                      problem, making version 1.0b                     */
/*      06-01-1993      Verified version 1.0b                            */
/*      08-09-1993      Corrected pointer retrieval                      */
/*                      loop, resulting in version 1.0c                  */
/*      08-09-1993      Verified version 1.0c                            */
/*      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                            */
/*      11-01-1993      Added logic to save unhandled                    */
/*                      interrupt vector number in                       */
/*                      a global variable, resulting                     */
/*                      in version 1.0e                                  */
/*      11-01-1993      Verified version 1.0e                            */
/*      02-01-1994      Corrected a suspension with                      */
/*                      timeout problem that caused                      */
/*                      unconditional task suspension                    */
/*                      for timeouts and sleeps for 1                    */
/*                      tick, resulting in version 1.0f                  */
/*      02-01-1994      Verified version 1.0f                            */
/*      03-01-1994      Added another routine that                       */
/*                      validates resume calls with                      */
/*                      the appropriate protection and                   */
/*                      added code to clear cleanup                      */
/*                      information at task create and                   */
/*                      task resume time, resulting in                   */
/*                      version 1.0g                                     */
/*      03-01-1994      Verified version 1.0g                            */
/*      03-01-1994      Moved non-core functions into                    */
/*                      supplemental files, changed                      */
/*                      function interfaces to match                     */
/*                      those in prototype, added                        */
/*                      register options, fixed bug                      */
/*                      in suspending current task from                  */
/*                      a HISR, added a system protect                   */
/*                      structure to reduce overhead                     */
/*                      in protection, moved resume                      */
/*                      validate to error checking                       */
/*                      file, resulting in version 1.1                   */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      12-18-1995      Modified TCC_Resume_Service,                     */
/*                      resulting in version 1.1+                        */
/*                      (SPR 36, 64, 66, 77)                             */
/*      04-17-1996      updated to version 1.2                           */
/*      06-01-1996      Modified TCC_Suspend_Task                        */
/*                      (SPR152) creating version 1.2a                   */
/*      10-29-1997      Modified TCC_Resume_Task                         */
/*                      (SPR115) creating vresion 1.2b                   */
/*      01-23-1998      Released version 1.2b                            */
/*      03-20-1998      Corrected problem where tasks                    */
/*                      created with NU_NO_PREEMPT in                    */
/*                      Application_Initialize would                     */
/*                      start in the order of creation                   */
/*                      and not in priority order.                       */
/*                      SPR455 creates version 1.2c                      */
/*      03-24-1998      Released version 1.3.                            */
/*      10-02-1998      Another protect problem (1.3a)                   */
/*      10-02-1998      Corrected a problem where a                      */
/*                      a timer expiration occurs                        */
/*                      during signal handler execution                  */
/*                      and causes the task to never                     */
/*                      run again (SPR 923) creating                     */
/*                      version 1.3b.                                    */
/*      03-26-1999      Released 1.11m (new release                      */
/*                        numbering scheme)                              */
/*      04-17-2002      Released version 1.13m                           */
/*      11-07-2002      Released version 1.14                            */
/*************************************************************************/
#define         NU_SOURCE_FILE

#include        "in_defs.h"                 /* Initialization defines    */
#include        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "in_extr.h"                 /* Initialization/Interrupt  */
                                            /*   functions               */
#include        "tm_extr.h"                 /* Timer control functions   */
#include        "er_extr.h"                 /* Error handling function   */
#include        "hi_extr.h"                 /* History functions         */
#include        "profiler.h"                /* Nucleus Profiling header  */

#if ((defined(NU_MODULE_SUPPORT)) && (NU_MODULE_SUPPORT > 0))
#include        "module/inc/ms_defs.h"      /* MS_Module typedef */
#endif

/* Define external inner-component global data references.  */

extern INT              INC_Initialize_State;
extern CS_NODE         *TCD_Created_Tasks_List;
extern UNSIGNED         TCD_Total_Tasks;
extern TC_TCB          *TCD_Priority_List[TC_PRIORITIES];
extern UNSIGNED         TCD_Priority_Groups;
extern DATA_ELEMENT     TCD_Sub_Priority_Groups[TC_MAX_GROUPS];
extern UNSIGNED_CHAR    TCD_Lowest_Set_Bit[];
extern INT              TCD_Highest_Priority;
extern TC_TCB          *TCD_Execute_Task;
extern VOID            *TCD_Current_Thread;
extern UNSIGNED_CHAR    TCD_Registered_LISRs[NU_MAX_VECTORS+1];
extern VOID           (*TCD_LISR_Pointers[NU_MAX_LISRS+1])(INT vector);
extern INT              TCD_Interrupt_Count;
extern INT              TCD_Stack_Switched;
extern TC_PROTECT       TCD_List_Protect;
extern TC_PROTECT       TCD_System_Protect;
extern TC_PROTECT       TCD_LISR_Protect;
extern CS_NODE         *TCD_Created_HISRs_List;
extern UNSIGNED         TCD_Total_HISRs;
extern TC_PROTECT       TCD_HISR_Protect;
extern INT              TCD_Unhandled_Interrupt;


/* Define external inner-component function calls that are not available to
   other components.  */

VOID            TCT_Build_Task_Stack(TC_TCB *task_ptr);
VOID            TCT_Build_HISR_Stack(TC_HCB *hisr_ptr);
VOID            TCT_Build_Signal_Frame(TC_TCB *task_ptr);
VOID            TCT_Protect_Switch(TC_TCB *task);
VOID            TCT_Signal_Exit(VOID);


/* Define internal function calls.  */

VOID            TCC_Signal_Shell(VOID);


#if defined(NU_MODULE_SUPPORT) && (NU_MODULE_SUPPORT > 0)

/* Define service routines "privately" imported from other components */
extern MS_MODULE* msd_current_module;

STATUS MSC_Bind_Module_HISR(MS_MODULE* module, TC_HCB* hisr);
STATUS MSC_Bind_Module_Task(MS_MODULE* module, TC_TCB* task);

#endif /* NU_MODULE_SUPPORT */

/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TCC_Create_Task                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function creates a task and then places it on the list of   */
/*      created tasks.  All the resources necessary to create the task   */
/*      are supplied to this routine.  If specified, the newly created   */
/*      task is started.  Otherwise, it is left in a suspended state.    */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      TCCE_Create_Task                    Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Add TCB to linked-list       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Start the created task       */
/*      TCT_Build_Task_Stack                Build an initial task stack  */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Transfer control to system   */
/*      TCT_Protect                         Protect created task list    */
/*      TCT_Unprotect                       Release protection of list   */
/*      TMC_Init_Task_Timer                 Initialize the task's timer  */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      task_ptr                            Task control block pointer   */
/*      name                                Task name                    */
/*      task_entry                          Entry function of the task   */
/*      argc                                Optional task parameter      */
/*      argv                                Optional task parameter      */
/*      stack_address                       Pointer to start of stack    */
/*      stack_size                          Size of task stack in bytes  */
/*      priority                            Task priority                */
/*      time_slice                          Task time slice              */
/*      preempt                             Task preemptability flag     */
/*      auto_start                          Automatic task start         */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产iv一区二区三区| 另类小说色综合网站| 精品国产区一区| 日韩一区二区三区在线视频| 欧美日韩精品免费| 91麻豆精品国产91久久久资源速度 | 欧美精品第1页| 欧美视频你懂的| 精品视频1区2区3区| 欧美日韩中文一区| 在线综合+亚洲+欧美中文字幕| 欧美在线视频你懂得| 欧美人妖巨大在线| 欧美丰满一区二区免费视频| 91精品国产乱码| 精品国产一区二区三区不卡| 久久视频一区二区| 国产精品视频麻豆| 一区二区三区中文在线| 日韩不卡一二三区| 国产成人亚洲综合a∨婷婷图片| 成人美女视频在线看| 一本在线高清不卡dvd| 欧美色图片你懂的| 日韩欧美国产成人一区二区| 国产婷婷色一区二区三区| 国产精品超碰97尤物18| 视频一区视频二区中文字幕| 久久er精品视频| 97久久超碰精品国产| 777精品伊人久久久久大香线蕉| 精品国精品国产| 最新国产の精品合集bt伙计| 亚洲成人动漫精品| 国产成人精品aa毛片| 欧美午夜在线观看| 久久久亚洲高清| 亚洲国产欧美另类丝袜| 国产裸体歌舞团一区二区| 91麻豆免费观看| 精品理论电影在线| 亚洲蜜桃精久久久久久久| 精品一区二区三区香蕉蜜桃| 91成人网在线| 中文字幕乱码一区二区免费| 青青草视频一区| 成人黄色在线看| 精品国产乱码久久久久久免费 | 亚洲欧洲一区二区三区| 青青草国产成人99久久| 一本色道久久综合狠狠躁的推荐 | 亚洲一区精品在线| 成人妖精视频yjsp地址| 精品国内片67194| 婷婷综合另类小说色区| 色网综合在线观看| 国产精品视频免费| 国产一区二区不卡| 欧美不卡一区二区三区| 视频一区中文字幕| 欧美午夜视频网站| 国产精品萝li| 国产91对白在线观看九色| 日韩欧美一区在线| 青青草97国产精品免费观看无弹窗版| 欧美影片第一页| 亚洲黄色在线视频| 日本韩国欧美国产| 亚洲欧美日韩国产一区二区三区 | 9色porny自拍视频一区二区| 久久久亚洲精品一区二区三区| 美国一区二区三区在线播放| 欧美丰满嫩嫩电影| 日韩精品亚洲一区| 欧美精品高清视频| 日韩精品成人一区二区三区| 欧美日韩国产成人在线免费| 亚洲国产精品久久不卡毛片| 在线一区二区三区四区| 亚洲精品久久嫩草网站秘色| 91福利国产成人精品照片| 亚洲另类春色校园小说| 欧美亚洲动漫另类| 日韩不卡手机在线v区| 欧美一二三四区在线| 男人的天堂久久精品| 欧美成人一区二区三区片免费| 日本v片在线高清不卡在线观看| 欧美成人bangbros| 国产精品996| 亚洲图片另类小说| 91精品国产综合久久久久久久久久| 丝袜诱惑制服诱惑色一区在线观看| 欧美一区二区在线播放| 国产精一区二区三区| 国产精品久久夜| 欧美日韩综合在线| 国产制服丝袜一区| 亚洲少妇30p| 欧美二区三区的天堂| 久久66热re国产| 成人欧美一区二区三区视频网页| 在线欧美日韩精品| 欧美aaaaa成人免费观看视频| 久久日韩精品一区二区五区| 99久久夜色精品国产网站| 亚洲影院理伦片| 久久久久一区二区三区四区| 在线亚洲人成电影网站色www| 日本美女一区二区三区视频| 中文字幕成人在线观看| 欧美日韩国产三级| 成人的网站免费观看| 琪琪一区二区三区| 亚洲视频一区在线观看| 欧美一级精品大片| 91麻豆精品国产91久久久资源速度 | 99re亚洲国产精品| 日本欧美加勒比视频| 日韩毛片视频在线看| 欧美一区二区三区免费视频| 懂色av一区二区在线播放| 亚洲国产sm捆绑调教视频| 久久久久久久av麻豆果冻| 欧美调教femdomvk| www.欧美日韩| 国精产品一区一区三区mba视频 | 懂色av一区二区夜夜嗨| 日韩黄色免费电影| 亚洲精品免费在线| 欧美激情一二三区| 91精品国产综合久久香蕉的特点 | 一区二区三区欧美激情| 国产亚洲女人久久久久毛片| 日韩色在线观看| 欧美日韩在线不卡| 色婷婷国产精品久久包臀| 国产成人免费视频精品含羞草妖精| 日韩影院免费视频| 亚洲一区二区欧美激情| ...xxx性欧美| 中文字幕亚洲综合久久菠萝蜜| 欧美mv日韩mv国产网站| 欧美一区二区三区四区五区| 欧美色爱综合网| 欧美体内she精高潮| 91九色最新地址| 色美美综合视频| 99精品热视频| 9i看片成人免费高清| 91色porny| 色噜噜夜夜夜综合网| 在线看不卡av| 欧美日本在线看| 欧美色综合影院| 欧美电影在哪看比较好| 欧美日韩第一区日日骚| 欧美日韩国产综合草草| 91精选在线观看| 欧美电影免费观看高清完整版在| 日韩精品一区二区三区在线播放| 欧美一区二区在线看| 精品少妇一区二区三区在线播放| 精品入口麻豆88视频| 国产日本亚洲高清| 午夜成人免费电影| 美女在线视频一区| 国产成人午夜精品5599| 9i在线看片成人免费| 在线看国产一区二区| 51精品国自产在线| 精品久久久久久久久久久久包黑料 | 欧美亚洲一区三区| 欧美精品一二三四| 日韩精品中午字幕| 国产女人aaa级久久久级| 亚洲欧美一区二区三区久本道91| 一区二区三区中文字幕精品精品| 亚洲伊人伊色伊影伊综合网| 日韩成人一区二区三区在线观看| 久久精品国产色蜜蜜麻豆| 国产精品一区一区三区| 99热这里都是精品| 91精品一区二区三区久久久久久| 久久久久久久国产精品影院| 亚洲美女视频一区| 欧美aaa在线| bt欧美亚洲午夜电影天堂| 在线观看免费亚洲| 欧美精品一区二区三区久久久| 亚洲欧洲综合另类在线| 欧美96一区二区免费视频| 成人91在线观看| 日韩一级二级三级| 亚洲精品日韩综合观看成人91| 美日韩黄色大片| 欧美在线你懂的| 国产精品青草久久| 日韩和欧美一区二区三区| 91免费国产在线观看|