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

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

?? hic.c

?? nucleas source code
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      TCC_Current_HISR_Pointer            Retrieve current HISR pointer*/
/*      TCC_Current_Task_Pointer            Retrieve current task pointer*/
/*      TCT_Get_Current_Protect             Pickup current protection    */
/*      TCT_Protect                         Protect history structures   */
/*      TCT_Set_Current_Protect             Set current protection       */
/*      TCT_Unprotect                       Release history protection   */
/*      TCT_Unprotect_Specific              Release history protection   */
/*      TMT_Retrieve_Clock                  Retrieve system clock        */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      param1                              First history parameter      */
/*      param2                              Second history parameter     */
/*      param3                              Third history parameter      */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified protection logic,                       */
/*                        resulting in version 1.1                       */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
VOID  HIC_Make_History_Entry(DATA_ELEMENT id, UNSIGNED param1,
                                        UNSIGNED param2, UNSIGNED param3)
{
TC_PROTECT              *save_protect;      /* Save protect pointer     */
HI_HISTORY_ENTRY        *pointer;           /* Quick access pointer     */
NU_SUPERV_USER_VARIABLES

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

    /* If we are not in initialization, get the current protection state */
    if (INC_Initialize_State ==  INC_END_INITIALIZE)

        /* Pickup current protection.  */
        save_protect =  TCT_Get_Current_Protect();

    else
        /* we are in initialization, just clear save_protect */
        save_protect = 0;

    /* Protect the history data structures.  */
    TCT_Protect(&HID_History_Protect);

    /* Determine if history saving is enabled.  */
    if (HID_History_Enable)
    {

        /* Yes, history saving is enabled.  */

        /* Build a pointer to the next location to write to in the table. */
        pointer =  &HIC_History_Table[HID_Write_Index];

        /* Place the necessary information into the history table at the
           current location.  */
        pointer -> hi_id =      id;
        pointer -> hi_param1 =  param1;
        pointer -> hi_param2 =  param2;
        pointer -> hi_param3 =  param3;
        pointer -> hi_time =    TMT_Retrieve_Clock();

        /* Now determine what thread we are currently in.  */
        if ((pointer -> hi_thread =
                (VOID *) TCC_Current_Task_Pointer()) != NU_NULL)

            /* Task thread.  Set the caller flag accordingly.  */
            pointer -> hi_caller =  HI_TASK;

        else if ((pointer -> hi_thread =
                (VOID *) TCC_Current_HISR_Pointer()) != NU_NULL)

            /* HISR thread.  Set the caller flag accordingly.  */
            pointer -> hi_caller =  HI_HISR;

        else

            /* Neither a task or HISR, it caller must be initialization.  */
            pointer -> hi_caller =  HI_INITIALIZE;

        /* Move the write index.  */
        HID_Write_Index++;

        /* Check for a wrap condition on the write index.  */
        if (HID_Write_Index >= HI_MAX_ENTRIES)

            /* Wrap condition present, adjust the write index to the top of the
               table.  */
            HID_Write_Index =  0;

        /* Increment the entries counter, if the maximum has not yet been
           reached.  */
        if (HID_Entry_Count < HI_MAX_ENTRIES)

            /* Increment the total entries counter.  */
            HID_Entry_Count++;
        else

            /* Drag the read index along with the write index.  */
            HID_Read_Index =  HID_Write_Index;
    }

    /* Determine if there was protection in force before call.  */
    if (save_protect)
    {

        /* Make saved protection the current again.  */
        TCT_Set_Current_Protect(save_protect);

        /* Release the history protection.  */
        TCT_Unprotect_Specific(&HID_History_Protect);
    }
    else

        /* Release protection.  */
        TCT_Unprotect();

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      HIC_Retrieve_History_Entry                                       */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function retrieves the next oldest entry in the history     */
/*      table.  If no more entries are available, an error status is     */
/*      returned.                                                        */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      TCT_Protect                         Protect history structures   */
/*      TCT_Unprotect                       Release history protection   */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      id                                  Destination for entry id     */
/*      param1                              Destination for parameter 1  */
/*      param2                              Destination for parameter 2  */
/*      param3                              Destination for parameter 3  */
/*      time                                Destination for time of entry*/
/*      task                                Destination of task pointer  */
/*      hisr                                Destination of hisr pointer  */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*                                                                       */
/*************************************************************************/
STATUS  HIC_Retrieve_History_Entry(DATA_ELEMENT *id, UNSIGNED *param1,
                                        UNSIGNED *param2, UNSIGNED *param3,
                                        UNSIGNED *time, NU_TASK **task,
                                        NU_HISR **hisr)
{

STATUS                  status;             /* Completion status        */
HI_HISTORY_ENTRY        *pointer;           /* Quick access pointer     */
NU_SUPERV_USER_VARIABLES

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

    /* Initialize status.  */
    status =  NU_SUCCESS;

    /* Protect the history data structures.  */
    TCT_Protect(&HID_History_Protect);

    /* Determine if there is an entry in the history log.  */
    if (HID_Entry_Count)
    {

        /* Yes, there is at least one entry in the history log.  */

        /* Build a pointer to the next location to read from in the table. */
        pointer =  &HIC_History_Table[HID_Read_Index];

        /* Place the necessary information into the history table at the
           current location.  */
        *id =           pointer -> hi_id;
        *param1 =       pointer -> hi_param1;
        *param2 =       pointer -> hi_param2;
        *param3 =       pointer -> hi_param3;
        *time =         pointer -> hi_time;

        /* Now determine what thread the entry was made from.  */
        if (pointer -> hi_caller == HI_TASK)
        {

            /* Setup the task return parameter.  */
            *task =     (NU_TASK *) pointer -> hi_thread;
            *hisr =     NU_NULL;
        }
        else
        {

            /* In either HISR or initialize case place the thread value
               in the HISR return parameter.  */
            *hisr =     (NU_HISR *) pointer -> hi_thread;
            *task =     NU_NULL;
        }

        /* Move the read index.  */
        HID_Read_Index++;

        /* Check for a wrap condition on the read index.  */
        if (HID_Read_Index >= HI_MAX_ENTRIES)

            /* Wrap condition present, adjust the read index to the top of the
               table.  */
            HID_Read_Index =  0;

        /* Decrement the entries counter.  */
        HID_Entry_Count--;
    }
    else

        /* Return the end of history log status.  */
        status =  NU_END_OF_LOG;

    /* Release protection.  */
    TCT_Unprotect();

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

    /* Return completion status to the caller.  */
    return(status);
}




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品在线一区二区三区| 91香蕉国产在线观看软件| 国产精品久久久久久久久晋中| 天天综合天天综合色| 日韩一区在线看| 欧美日韩一区二区欧美激情| 91国产视频在线观看| 色婷婷久久久久swag精品| 日韩高清一区在线| 国产精品婷婷午夜在线观看| 国产精品婷婷午夜在线观看| 中文字幕在线观看一区| 亚洲免费观看在线观看| 亚洲永久精品大片| 国产午夜久久久久| 亚洲欧洲www| 亚洲成a人片在线观看中文| 久久久99免费| 91麻豆精品国产91| 精品免费日韩av| 中文字幕一区日韩精品欧美| 亚洲黄色录像片| 日韩国产欧美在线播放| 精品一区二区综合| av亚洲精华国产精华精| 久热成人在线视频| 国产麻豆精品一区二区| 成人免费视频视频在线观看免费| 一区二区三区欧美日韩| 三级在线观看一区二区| 国产一区二区三区视频在线播放| 一区二区三区精品在线观看| 日本不卡视频一二三区| 不卡免费追剧大全电视剧网站| 国内精品久久久久影院薰衣草| 午夜亚洲国产au精品一区二区| 自拍偷自拍亚洲精品播放| 五月婷婷色综合| 国产精品99久久久久| 欧美日韩一级黄| 欧美日韩中文国产| 91免费精品国自产拍在线不卡| 国产精品18久久久久| 色天天综合色天天久久| 精品成a人在线观看| 亚洲一区二三区| 成人免费毛片a| 日韩免费电影网站| 亚洲成人综合在线| 99久久精品国产观看| 久久五月婷婷丁香社区| 婷婷一区二区三区| 久久国产精品第一页| 在线看不卡av| 日韩毛片精品高清免费| 韩国v欧美v亚洲v日本v| 欧美一区三区四区| 亚洲与欧洲av电影| 99精品欧美一区二区三区综合在线| www.66久久| 国产日产欧美精品一区二区三区| 国产精品三级在线观看| 国产中文字幕精品| 成人激情小说乱人伦| 精品国产免费一区二区三区四区| 久久精品夜色噜噜亚洲aⅴ| 三级久久三级久久| 欧美网站大全在线观看| 一区二区在线观看免费| 成人精品国产免费网站| 久久久国产午夜精品| 国产精品99久| 国产午夜精品久久| 懂色av一区二区夜夜嗨| 国产精品久久久久一区| aaa欧美大片| 亚洲欧美在线观看| 色婷婷久久综合| 亚洲午夜免费福利视频| 欧美日韩国产另类一区| 午夜精品一区在线观看| 欧美电影一区二区三区| 天天色综合成人网| 精品国产一区二区三区忘忧草| 国产精品视频看| 99久久99久久精品国产片果冻| 在线不卡免费av| 精品中文字幕一区二区| 久久天堂av综合合色蜜桃网| 亚洲国产日产av| 欧美日韩国产123区| 久久91精品国产91久久小草| 久久综合久色欧美综合狠狠| 亚洲一区精品在线| 91精品综合久久久久久| 亚洲女子a中天字幕| 欧美亚洲禁片免费| 另类欧美日韩国产在线| 国产区在线观看成人精品 | 久久国产尿小便嘘嘘尿| 欧美va亚洲va国产综合| 豆国产96在线|亚洲| 亚洲综合免费观看高清完整版| 国产成人在线色| 亚洲精品国产高清久久伦理二区 | 久久这里只有精品6| 成人一区二区视频| 香蕉成人伊视频在线观看| 99在线精品观看| 偷拍日韩校园综合在线| 国产丝袜欧美中文另类| 在线影院国内精品| 亚洲精品高清在线| 精品久久久久久久久久久久久久久久久| 亚洲一级二级在线| 久久亚洲精精品中文字幕早川悠里 | 欧美精品99久久久**| 国产精品一卡二卡| 婷婷成人综合网| 亚洲欧洲精品天堂一级| 国产v日产∨综合v精品视频| 久久综合中文字幕| 欧美三级视频在线播放| 成人免费看黄yyy456| 免费一级欧美片在线观看| 亚洲欧洲日产国码二区| 色婷婷亚洲婷婷| 成人黄色大片在线观看| 激情文学综合丁香| 视频一区在线播放| 欧美岛国在线观看| 久久成人av少妇免费| 亚洲国产视频直播| 一色桃子久久精品亚洲| 欧美精品一区二区在线观看| 久久99久国产精品黄毛片色诱| 精品国产成人系列| 欧美一区二区三区日韩| 欧美在线色视频| 在线欧美一区二区| 一道本成人在线| 天天综合色天天| 亚洲一区欧美一区| 精品国产一区二区亚洲人成毛片| 国产精品一线二线三线| 国产在线精品一区二区| 欧美a级一区二区| 日本网站在线观看一区二区三区| 精品伦理精品一区| 精品国产一二三| 日韩欧美成人一区二区| 日韩一级黄色大片| 91精品国产免费| 日韩欧美高清dvd碟片| 成人晚上爱看视频| 成人一区二区在线观看| voyeur盗摄精品| 91色在线porny| 日韩一区精品视频| 免费欧美高清视频| 国产精品亚洲а∨天堂免在线| 亚洲狼人国产精品| 亚洲一区二区四区蜜桃| 亚洲与欧洲av电影| 日韩激情在线观看| 韩国毛片一区二区三区| 亚洲在线观看免费视频| 三级亚洲高清视频| 国产一二三精品| aaa亚洲精品| 制服丝袜中文字幕亚洲| 久久久久久久久久久久电影 | 在线91免费看| 日韩免费一区二区三区在线播放| 91在线无精精品入口| 91久久精品一区二区三区| 欧美日韩一区在线观看| 欧美一级高清片| 国产精品传媒入口麻豆| 亚洲一区二区三区中文字幕 | caoporm超碰国产精品| 色国产综合视频| 欧美va亚洲va| 欧美美女视频在线观看| 精品奇米国产一区二区三区| 欧美久久高跟鞋激| 久久精品人人爽人人爽| 亚洲综合丁香婷婷六月香| 美女网站视频久久| 91麻豆国产在线观看| 日韩一区二区三区四区| 欧美日韩国产另类一区| 国产亚洲一区二区三区四区| 日韩欧美成人一区二区| 欧美午夜精品久久久久久孕妇 | 欧美日韩国产成人在线免费| 久久人人爽人人爽| 五月婷婷欧美视频| 99久久精品国产麻豆演员表| 日韩一区二区三区av|