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

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

?? qus.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       */
/*                                                                       */
/*      qus.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      QU - Queue Management                                            */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains supplemental routines for the Queue           */
/*      Management component.                                            */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      QUS_Reset_Queue                     Reset a queue                */
/*      QUS_Send_To_Front_Of_Queue          Send message to queue's front*/
/*      QUS_Broadcast_To_Queue              Broadcast a message to queue */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      qu_extr.h                           Queue 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        "qu_extr.h"                 /* Queue functions           */
#include        "hi_extr.h"                 /* History functions         */
#include        "profiler.h"                /* ProView interface         */


/* Define internal component function prototypes.  */

VOID    QUC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUS_Reset_Queue                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function resets the specified queue back to the original    */
/*      state.  Any messages in the queue are discarded.  Also, any      */
/*      tasks currently suspended on the queue are resumed with the      */
/*      reset status.                                                    */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      QUSE_Reset_Queue                    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 queue data structures*/
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      queue_ptr                           Queue 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      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  QUS_Reset_Queue(NU_QUEUE *queue_ptr)
{

R1 QU_QCB      *queue;                      /* Queue control block ptr   */
QU_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
QU_SUSPEND     *next_ptr;                   /* Next suspend block pointer*/
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

    /* Move input queue pointer into internal pointer.  */
    queue =  (QU_QCB *) queue_ptr;

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

#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_QUEUE_ID, (UNSIGNED) queue,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

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

    /* Pickup the suspended task suspension list.  */
    suspend_ptr =  queue -> qu_suspension_list;

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

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

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

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

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == queue -> qu_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 suspend block.  */
            suspend_ptr =  next_ptr;
    }

    /* Pickup the urgent message suspension list.  */
    suspend_ptr =  queue -> qu_urgent_list;

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

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

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

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

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

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

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

    /* Initialize various elements of the queue.  */
    queue -> qu_available =             queue -> qu_end - queue -> qu_start;
    queue -> qu_messages =              0;
    queue -> qu_read =                  queue -> qu_start;
    queue -> qu_write =                 queue -> qu_start;
    queue -> qu_tasks_waiting =         0;
    queue -> qu_suspension_list =       NU_NULL;
    queue -> qu_urgent_list =           NU_NULL;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpQueue(RT_PROF_RESET_QUEUE,queue,RT_PROF_OK);
#endif

    /* 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 queue.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUS_Send_To_Front_Of_Queue                                       */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends a message to the front of the specified      */
/*      message queue.  The message length is determined by the caller.  */
/*      If there are any tasks suspended on the queue for a message, the */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av电影免费观看高清完整版在线观看| 国内成人免费视频| 日韩欧美国产精品| 91日韩一区二区三区| 极品少妇一区二区| 午夜电影一区二区三区| 亚洲天堂成人网| 亚洲国产精品成人综合色在线婷婷| 欧美精品亚洲一区二区在线播放| 成人爱爱电影网址| 国产成人av福利| 日韩二区在线观看| 亚洲18女电影在线观看| 亚洲欧洲另类国产综合| 国产精品九色蝌蚪自拍| 欧美精品一区二区久久久| 欧美午夜精品一区二区三区| 91社区在线播放| 99re视频这里只有精品| av在线一区二区| 粉嫩aⅴ一区二区三区四区| 国产在线一区二区| 国产乱子伦视频一区二区三区 | 亚洲第一主播视频| 一区二区三区欧美视频| 亚洲综合在线视频| 一区二区三区高清在线| 亚洲人成7777| 一区二区三区成人在线视频| 日韩美女啊v在线免费观看| 亚洲欧美偷拍三级| 一区二区欧美在线观看| 亚洲资源在线观看| 欧美日韩黄视频| 五月天一区二区三区| 久久久久97国产精华液好用吗| 日韩欧美一区二区在线视频| 欧美一区二区三区视频| 欧美精品一区男女天堂| 中文字幕欧美日本乱码一线二线| 成人欧美一区二区三区视频网页| 亚洲欧洲综合另类| 日韩电影在线一区二区三区| 国内精品视频666| 91影院在线免费观看| 欧美日韩美女一区二区| 日韩视频一区二区| 国产精品久久午夜| 五月天亚洲精品| 成人精品免费视频| 欧美一区二区美女| 国产精品美女久久久久久久久久久 | 国产高清一区日本| 欧美性高清videossexo| 精品国产成人系列| 亚洲一区二区三区激情| 国产精品一级片| 制服.丝袜.亚洲.另类.中文| 欧美激情在线一区二区三区| 亚洲va欧美va人人爽| 成人国产精品免费网站| 日韩一区二区三区电影在线观看| 国产精品久线观看视频| 久久精品999| 久久久久国产精品麻豆| 亚洲综合免费观看高清在线观看| 国产一区二区网址| 欧美一区二区三区免费| 亚洲黄色片在线观看| 粉嫩av一区二区三区粉嫩 | 亚洲一区二区三区在线| 国产精品99久久久久| 欧美日本一道本在线视频| 国产精品久久久久久亚洲毛片| 美女高潮久久久| 欧美精品一二三区| 亚洲高清视频中文字幕| 色综合久久久久网| 亚洲麻豆国产自偷在线| 99久久国产综合色|国产精品| 亚洲精品一区二区三区99| 亚洲国产日日夜夜| 色94色欧美sute亚洲线路二| 中文字幕一区三区| 岛国精品在线播放| 中文一区一区三区高中清不卡| 激情图区综合网| 精品国产乱码久久久久久久久| 一级特黄大欧美久久久| 国产98色在线|日韩| 国产亚洲午夜高清国产拍精品| 国产精品一二三四五| 久久久久久久久久久久电影 | 亚洲久本草在线中文字幕| a在线欧美一区| 亚洲精品视频在线观看网站| 欧洲精品一区二区三区在线观看| 亚洲一区二区三区三| 6080yy午夜一二三区久久| 麻豆91在线看| 午夜电影久久久| 欧美福利视频导航| 蜜臀av性久久久久蜜臀aⅴ四虎| 91精品国产色综合久久| 国产麻豆精品视频| 亚洲欧美一区二区三区极速播放| 欧美亚洲愉拍一区二区| 免费成人av在线| 久久久激情视频| eeuss鲁片一区二区三区| 亚洲激情中文1区| 51精品视频一区二区三区| 韩国理伦片一区二区三区在线播放| 国产蜜臀97一区二区三区| 91福利社在线观看| 久久精品国产亚洲高清剧情介绍| 日本一二三不卡| 91精品久久久久久蜜臀| 99久久婷婷国产综合精品电影| 三级成人在线视频| 中文字幕精品三区| 日韩午夜激情视频| 91香蕉视频mp4| 国产在线不卡一区| 日韩av一级片| 中文字幕一区二区视频| 欧美一区永久视频免费观看| 成人少妇影院yyyy| 麻豆91免费观看| 亚洲成人激情av| 中文字幕制服丝袜成人av | 91久久精品日日躁夜夜躁欧美| 久久精品国产第一区二区三区| 亚洲综合一二三区| 中文字幕一区二区三| 精品国产青草久久久久福利| 欧美日韩一区久久| 99re免费视频精品全部| 国产精品888| 国产一区二区三区最好精华液| 日韩国产高清影视| 亚洲成人精品一区二区| 亚洲自拍偷拍网站| 亚洲欧美另类图片小说| 亚洲欧洲精品一区二区精品久久久 | 欧美日韩一区二区三区视频| av欧美精品.com| 精品999久久久| 91精品婷婷国产综合久久| 欧美日本精品一区二区三区| 欧美色大人视频| 欧美另类一区二区三区| 91麻豆精品国产91久久久资源速度| 欧美三级三级三级| 欧美色图天堂网| 欧美日韩国产一级| 欧美一区二区三级| 精品国精品自拍自在线| 精品久久久久香蕉网| 久久久久久久久久美女| 国产精品热久久久久夜色精品三区| 欧美激情一区三区| 亚洲欧美国产毛片在线| 婷婷激情综合网| 久久99精品国产麻豆婷婷洗澡| 国产在线视频精品一区| 成人免费毛片片v| 色激情天天射综合网| 欧美亚洲综合久久| 欧美美女网站色| 国产一区在线精品| 亚洲精品一二三四区| 国产精品电影一区二区| 亚洲自拍偷拍综合| 奇米一区二区三区av| 成人av资源在线观看| 欧美日韩中文字幕精品| 欧美精品一区二区蜜臀亚洲| 最新成人av在线| 麻豆精品在线看| a4yy欧美一区二区三区| 69堂精品视频| 亚洲国产精品t66y| 丝瓜av网站精品一区二区 | 三级欧美韩日大片在线看| 国产激情偷乱视频一区二区三区| av色综合久久天堂av综合| 91精品国产色综合久久不卡电影 | 精品日韩在线观看| 亚洲欧洲制服丝袜| 国产精品99精品久久免费| 91官网在线观看| 欧美激情在线看| 美腿丝袜亚洲综合| 91久久精品网| 国产精品美女一区二区三区| 久久国产精品一区二区| 欧美日韩一区二区三区高清| 中文字幕一区二区日韩精品绯色| 久久99国产精品久久99果冻传媒|