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

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

?? pis.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               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       */
/*                                                                       */
/*      pis.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      PI - Pipe Management                                             */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the supplemental routines for the pipe        */
/*      management component.                                            */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      PIS_Reset_Pipe                      Reset a pipe                 */
/*      PIS_Send_To_Front_Of_Pipe           Send message to pipe's front */
/*      PIS_Broadcast_To_Pipe               Broadcast a message to pipe  */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      pi_extr.h                           Pipe functions               */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1994      Created initial version 1.1 from                 */
/*                      routines originally in core                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      02-04-1998      Corrected SPR434 resulting in                    */
/*                      version 1.2a.                                    */
/*      03-24-1998      Released version 1.3                             */
/*      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        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "pi_extr.h"                 /* Pipe functions            */
#include        "hi_extr.h"                 /* History functions         */
#include        "profiler.h"                /* ProView interface         */


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

extern CS_NODE         *PID_Created_Pipes_List;
extern UNSIGNED         PID_Total_Pipes;
extern TC_PROTECT       PID_List_Protect;


/* Define internal component function prototypes.  */

VOID    PIC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIS_Reset_Pipe                                                   */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function resets the specified pipe back to the original     */
/*      state.  Any messages in the pipe are discarded.  Also, any       */
/*      tasks currently suspended on the pipe are resumed with the       */
/*      reset status.                                                    */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PISE_Reset_Pipe                     Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Resume a suspended task      */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Transfer control to system   */
/*      TCT_System_Protect                  Protect against system access*/
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function interfaces to                   */
/*                      match those in prototype,                        */
/*                      added register options, changed                  */
/*                      protection logic to reduce                       */
/*                      overhead, fixed read and write                   */
/*                      pointers to both point at the                    */
/*                      start, resulting in version 1.1                  */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      02-04-1998      Corrected SPR434.                                */
/*                                                                       */
/*************************************************************************/
STATUS  PIS_Reset_Pipe(NU_PIPE *pipe_ptr)
{

R1 PI_PCB      *pipe;                       /* Pipe control block ptr    */
PI_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
PI_SUSPEND     *next_ptr;                   /* Next suspend block pointer*/
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

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

    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_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_RESET_PIPE_ID, (UNSIGNED) pipe,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against access to the pipe.  */
    TCT_System_Protect();

    /* Pickup the suspended task suspension list.  */
    suspend_ptr =  pipe -> pi_suspension_list;

    /* Walk the chain task(s) currently suspended on the pipe.  */
    preempt =  0;
    while (suspend_ptr)
    {

        /* Resume the suspended task.  Insure that the status returned is
           NU_PIPE_RESET.  */
        suspend_ptr -> pi_return_status =  NU_PIPE_RESET;

        /* Point to the next suspend structure in the link.  */
        next_ptr =  (PI_SUSPEND *) (suspend_ptr -> pi_suspend_link.cs_next);

        /* Resume the specified task.  */
        preempt =  preempt |
            TCC_Resume_Task((NU_TASK *) suspend_ptr -> pi_suspended_task,
                                                NU_PIPE_SUSPEND);

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == pipe -> pi_suspension_list)

            /* Clear the suspension pointer to signal the end of the list
               traversal.  */
            suspend_ptr =  NU_NULL;
        else

            /* Position the suspend pointer to the next block.  */
            suspend_ptr =  next_ptr;
    }

    /* Pickup the urgent message suspension list.  */
    suspend_ptr =  pipe -> pi_urgent_list;

    /* Walk the chain task(s) currently suspended on the pipe.  */
    while (suspend_ptr)
    {

        /* Resume the suspended task.  Insure that the status returned is
           NU_PIPE_RESET.  */
        suspend_ptr -> pi_return_status =  NU_PIPE_RESET;

        /* Point to the next suspend structure in the link.  */
        next_ptr =  (PI_SUSPEND *) (suspend_ptr -> pi_suspend_link.cs_next);

        /* Resume the specified task.  */
        preempt =  preempt |
            TCC_Resume_Task((NU_TASK *) suspend_ptr -> pi_suspended_task,
                                                NU_PIPE_SUSPEND);

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == pipe -> pi_urgent_list)

            /* Clear the suspension pointer to signal the end of the list
               traversal.  */
            suspend_ptr =  NU_NULL;
        else

            /* Position the suspend pointer to the next active block.  */
            suspend_ptr =  next_ptr;
    }

    /* Initialize various elements of the pipe.  */
    pipe -> pi_available =             pipe -> pi_end - pipe -> pi_start;
    pipe -> pi_messages =              0;
    pipe -> pi_read =                  pipe -> pi_start;
    pipe -> pi_write =                 pipe -> pi_start;
    pipe -> pi_tasks_waiting =         0;
    pipe -> pi_suspension_list =       NU_NULL;
    pipe -> pi_urgent_list =           NU_NULL;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpPipe(RT_PROF_RESET_PIPE,pipe,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    /* Determine if preemption needs to occur.  */
    if (preempt)

        /* Transfer control to system to facilitate preemption.  */
        TCT_Control_To_System();

    /* Release protection against access to the pipe.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIS_Send_To_Front_Of_Pipe                                        */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends a message to the front of the specified      */
/*      message pipe.  The message length is determined by the caller.   */
/*      If there are any tasks suspended on the pipe for a message, the  */
/*      message is copied into the message area of the first waiting     */
/*      task and that task is resumed.  If there is enough room in the   */
/*      pipe, the message is copied in front of all other messages.      */
/*      If there is not enough room in the pipe, suspension of the       */
/*      caller is possible.                                              */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产一二三| 亚洲欧美日韩一区二区| 日韩欧美国产综合在线一区二区三区| 色综合天天做天天爱| 成人黄色国产精品网站大全在线免费观看| 日韩一区欧美二区| 麻豆国产精品视频| 免费亚洲电影在线| 精品在线播放免费| 国产麻豆成人传媒免费观看| 国产精品亚洲一区二区三区在线| 国产电影精品久久禁18| 国产69精品久久99不卡| 岛国av在线一区| 99久久久免费精品国产一区二区| 99久免费精品视频在线观看| 99久久精品免费看| 欧美在线视频你懂得| 欧美日韩一区三区四区| 欧美丰满少妇xxxbbb| 制服丝袜av成人在线看| 欧美v日韩v国产v| 久久久99久久| 亚洲视频在线一区| 亚洲va欧美va人人爽| 久久99最新地址| 成人午夜激情视频| 91国偷自产一区二区开放时间 | 最新欧美精品一区二区三区| 亚洲欧美自拍偷拍| 亚洲国产精品一区二区尤物区| 婷婷六月综合网| 黄色日韩三级电影| 99re成人精品视频| 欧美一区二区视频在线观看| 久久九九国产精品| 亚洲一区二区视频在线| 激情五月激情综合网| 91女人视频在线观看| 欧美亚洲综合在线| 精品国产成人在线影院| 亚洲色图在线播放| 免费观看在线综合| 99久久精品久久久久久清纯| 欧美精品高清视频| 日本一区二区视频在线| 夜夜嗨av一区二区三区四季av| 免费日本视频一区| 成人97人人超碰人人99| 欧美放荡的少妇| 国产精品美女久久福利网站 | 欧美怡红院视频| 久久久99久久| 亚洲欧美一区二区久久| 99久久精品国产毛片| 在线观看91精品国产入口| 精品国产三级a在线观看| 亚洲男人电影天堂| 久久不见久久见中文字幕免费| av一区二区三区在线| 日韩欧美区一区二| 一区二区三区四区亚洲| 国产美女娇喘av呻吟久久| 欧美日韩五月天| 国产精品理论片| 久久99精品久久久久婷婷| 在线中文字幕一区| 国产欧美日韩另类一区| 美脚の诱脚舐め脚责91| 在线观看一区日韩| 成人欧美一区二区三区黑人麻豆| 久久99久久99精品免视看婷婷| 欧美午夜影院一区| 中文字幕精品一区二区精品绿巨人| 蜜桃视频在线观看一区| 欧美自拍偷拍午夜视频| 国产精品久久久久久久久晋中| 九九精品一区二区| 欧美精品日日鲁夜夜添| 一区二区在线免费观看| 成人永久免费视频| 亚洲精品一区二区三区影院| 日韩精品欧美精品| 欧美日韩国产首页在线观看| 日韩毛片视频在线看| 岛国一区二区在线观看| 精品国产免费一区二区三区四区 | 亚洲视频网在线直播| 国产精品一级二级三级| 精品国产一区二区三区久久影院| 天天综合天天做天天综合| 欧美综合天天夜夜久久| 一区二区三区四区在线播放| 91猫先生在线| 亚洲精品日产精品乱码不卡| 99久久99久久精品国产片果冻 | 国产一区二区三区美女| 日韩精品中午字幕| 久久99久久久欧美国产| 日韩欧美色电影| 麻豆精品在线视频| 欧美电影在哪看比较好| 亚洲一区二区三区三| 欧美少妇一区二区| 亚洲国产成人av| 欧美日韩夫妻久久| 欧美最新大片在线看| 国产高清不卡一区| 香蕉加勒比综合久久| 亚洲欧美电影一区二区| 久久日韩粉嫩一区二区三区| 精品国产乱码久久久久久图片| 色爱区综合激月婷婷| jizzjizzjizz欧美| www.日韩在线| 99久久婷婷国产精品综合| 国产精品夜夜爽| 日本一区中文字幕| 色综合一个色综合| 午夜a成v人精品| 亚洲综合免费观看高清在线观看| 欧美色综合久久| 久久精品亚洲国产奇米99| 92精品国产成人观看免费| 国产美女一区二区| 欧美三级电影在线看| 久久精品综合网| 激情六月婷婷综合| 裸体在线国模精品偷拍| 免费在线观看视频一区| 亚洲手机成人高清视频| 亚洲美女偷拍久久| 国产女主播一区| 久久久天堂av| 国产91在线看| 日韩高清不卡一区二区| 亚洲最快最全在线视频| 国产精品你懂的| 久久久久国产精品人| 欧美xxxxx牲另类人与| 欧美欧美欧美欧美| 欧美高清hd18日本| 欧美精品在线观看一区二区| 欧美唯美清纯偷拍| 欧美日韩国产区一| 欧美女孩性生活视频| 欧美少妇一区二区| 91精品综合久久久久久| 日韩欧美激情在线| 欧美国产视频在线| 日韩一区中文字幕| 男人的j进女人的j一区| 成人av一区二区三区| 欧美日韩久久不卡| 欧美成人精品福利| 日本一区二区三区高清不卡| 欧美国产日韩精品免费观看| 一区二区三区**美女毛片| 亚洲理论在线观看| 国产无人区一区二区三区| 成人网男人的天堂| 中文在线一区二区| 色噜噜久久综合| 久久草av在线| 亚洲三级电影网站| 91精品国产aⅴ一区二区| 国产在线精品一区在线观看麻豆| 亚洲欧美综合色| 91精品欧美综合在线观看最新| 裸体在线国模精品偷拍| 一区在线观看免费| 制服丝袜亚洲精品中文字幕| 福利视频网站一区二区三区| 欧美亚洲国产一卡| 天天影视色香欲综合网老头| 3d动漫精品啪啪一区二区竹菊| 视频精品一区二区| 日韩一区二区麻豆国产| 国产一区二区三区在线观看免费| 欧美剧情片在线观看| 久久精品国产色蜜蜜麻豆| 中文字幕在线不卡国产视频| 91免费观看在线| 日韩av中文在线观看| 国产欧美一二三区| 色综合久久六月婷婷中文字幕| 午夜精品一区二区三区免费视频| 日韩欧美高清在线| 99久久婷婷国产综合精品电影| 亚洲线精品一区二区三区| 精品日产卡一卡二卡麻豆| av电影在线观看一区| 麻豆精品一二三| 亚洲同性同志一二三专区| 精品av久久707| 91传媒视频在线播放| 成人午夜视频网站| 国内成+人亚洲+欧美+综合在线 | 免费一级片91| 亚洲一区二区三区不卡国产欧美|