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

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

?? pmc.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PMCE_Delete_Partition_Pool          Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Remove_From_List                Remove node from list        */
/*      [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_Protect                         Protect created list         */
/*      TCT_Set_Current_Protect             Modify current protection    */
/*      TCT_System_Protect                  Setup system protection      */
/*      TCT_System_Unprotect                Release system protection    */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pool_ptr                            Partition pool 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, resulting in                           */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PMC_Delete_Partition_Pool(NU_PARTITION_POOL *pool_ptr)
{

R1 PM_PCB      *pool;                       /* Pool control block ptr    */
PM_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
PM_SUSPEND     *next_ptr;                   /* Next suspend block        */
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

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

    /* Move input pool pointer into internal pointer.  */
    pool =  (PM_PCB *) pool_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_PARTITION_POOL_ID, (UNSIGNED) pool,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against simultaneous access to the partition pool.  */
    TCT_System_Protect();

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpPartitionPool(RT_PROF_DELETE_PARTITION_POOL,pool,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    /* Clear the partition pool ID.  */
    pool -> pm_id =  0;

    /* Release protection.  */
    TCT_Unprotect();

    /* Protect against access to the list of created partition pools.  */
    TCT_Protect(&PMD_List_Protect);

    /* Remove the partition pool from the list of created partition pools.  */
    CSC_Remove_From_List(&PMD_Created_Pools_List, &(pool -> pm_created));

    /* Decrement the total number of created partition pools.  */
    PMD_Total_Pools--;

    /* Pickup the suspended task pointer list.  */
    suspend_ptr =  pool -> pm_suspension_list;

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

        /* Protect against system access.  */
        TCT_System_Protect();

        /* Resume the suspended task.  Insure that the status returned is
           NU_POOL_DELETED.  */
        suspend_ptr -> pm_return_pointer =  NU_NULL;
        suspend_ptr -> pm_return_status =   NU_POOL_DELETED;

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

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

        /* Determine if the next is the same as the current pointer.  */
        if (next_ptr == pool -> pm_suspension_list)

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

            /* Move the next pointer into the suspend block pointer.  */
            suspend_ptr =  next_ptr;

        /* Modify current protection.  */
        TCT_Set_Current_Protect(&PMD_List_Protect);

        /* Clear the system protection.  */
        TCT_System_Unprotect();
    }

    /* 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 list of created partition
       pools. */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PMC_Allocate_Partition                                           */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function allocates a memory partition from the specified    */
/*      memory partition pool.  If a memory partition is currently       */
/*      available, this function is completed immediately.  Otherwise,   */
/*      if there are no partitions currently available, suspension is    */
/*      possible.                                                        */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PMCE_Allocate_Partition             Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Place on suspend list        */
/*      CSC_Priority_Place_On_List          Place on priority list       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Suspend_Task                    Suspend calling task         */
/*      TCC_Task_Priority                   Pickup task's priority       */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Current_Thread                  Pickup current thread pointer*/
/*      TCT_System_Protect                  Protect partition pool       */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pool_ptr                            Memory partition pool pointer*/
/*      return_pointer                      Pointer to the destination   */
/*                                            memory pointer             */
/*      suspend                             Suspension option if full    */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                          If service is successful     */
/*      NU_NO_PARTITION                     No partitions are available  */
/*      NU_TIMEOUT                          If timeout on service        */
/*      NU_POOL_DELETED                     If partition pool deleted    */
/*                                            during suspension          */
/*                                                                       */
/* 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, resulting in                           */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PMC_Allocate_Partition(NU_PARTITION_POOL *pool_ptr,
                                VOID **return_pointer, UNSIGNED suspend)
{

R1 PM_PCB      *pool;                       /* Pool control block ptr    */
R2 PM_SUSPEND  *suspend_ptr;                /* Suspend block pointer     */
PM_SUSPEND      suspend_block;              /* Allocate suspension block */
R3 PM_HEADER   *partition_ptr;              /* Pointer to partition      */
TC_TCB         *task;                       /* Task pointer              */
STATUS          status;                     /* Completion status         */
NU_SUPERV_USER_VARIABLES

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

    /* Move input pool pointer into internal pointer.  */
    pool =  (PM_PCB *) pool_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_ALLOCATE_PARTITION_ID, (UNSIGNED) pool,
                                (UNSIGNED) return_pointer, (UNSIGNED) suspend);

#endif

    /* Initialize the status as successful.  */
    status =  NU_SUCCESS;

    /* Protect against simultaneous access to the partition pool.  */
    TCT_System_Protect();

    /* Determine if there is an available memory partition.  */
    if (pool -> pm_available)
    {

        /* Partition available.  */

        /* Decrement the available count.  */
        pool -> pm_available--;

        /* Increment the allocated count.  */
        pool -> pm_allocated++;

        /* Unlink the first memory partition and return the pointer to the
           caller.  */
        partition_ptr =              pool -> pm_available_list;
        pool -> pm_available_list =  partition_ptr -> pm_next_available;
        partition_ptr -> pm_next_available =  NU_NULL;

        /* Return a memory address to the caller.  */
        *return_pointer =  (VOID *) (((BYTE_PTR) partition_ptr) + PM_OVERHEAD);

#ifdef INCLUDE_PROVIEW
        _RTProf_DumpPartitionPool(RT_PROF_ALLOCATE_PARTITION,pool,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    }
    else
    {

        /* A partition is not available.  Determine if suspension is
           required. */
        if (suspend)
        {

            /* Suspension is selected.  */

            /* Increment the number of tasks waiting.  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清在线播放| 99国产精品久久久久久久久久| 国产精品麻豆一区二区| 欧美sm极限捆绑bd| 日韩一区二区三| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 免费在线观看一区| 亚洲影院在线观看| 亚洲成人激情av| 日本成人中文字幕在线视频| 久久精品国产免费看久久精品| 蜜臀av性久久久久蜜臀aⅴ四虎| 久久 天天综合| 成人在线综合网| 91麻豆福利精品推荐| 欧美系列一区二区| 91精品国产综合久久精品性色| 欧美一区二区在线观看| 337p日本欧洲亚洲大胆色噜噜| 国产亚洲成年网址在线观看| 中文字幕一区二| 偷窥少妇高潮呻吟av久久免费 | 欧美系列一区二区| 日韩一区二区三区免费看| 久久综合狠狠综合| 亚洲色图一区二区三区| 亚洲国产精品一区二区尤物区| 捆绑调教美女网站视频一区| 国产高清不卡二三区| 色94色欧美sute亚洲13| 欧美一区二区精美| 亚洲色图一区二区三区| 另类小说视频一区二区| 成人av电影免费观看| 欧美午夜电影网| 国产欧美一区二区精品秋霞影院| 亚洲欧美韩国综合色| 人人超碰91尤物精品国产| 成人午夜av电影| 欧美高清视频一二三区| 国产欧美一区视频| 丝袜亚洲另类欧美| 成人av网在线| 欧美www视频| 性久久久久久久久| 成人爱爱电影网址| 日韩精品一区二区三区在线播放| 国产精品不卡在线观看| 九色|91porny| 7799精品视频| 一区二区三区波多野结衣在线观看| 久久国产精品免费| 欧美日韩mp4| 中文字幕一区二区三区在线播放 | 亚洲欧美另类图片小说| 韩国精品在线观看| 7777精品久久久大香线蕉| 亚洲色图视频网| 国产成人精品免费| 欧美大片日本大片免费观看| 亚洲国产欧美在线| av中文字幕不卡| 欧美激情在线一区二区| 精品一区二区三区在线观看| 欧美精品一卡两卡| 亚洲午夜精品网| 欧美亚洲国产一区在线观看网站| 国产精品美女久久久久久| 国产伦精一区二区三区| 欧美精品一区二| 国产在线精品一区二区夜色| 欧美精品在欧美一区二区少妇| 亚洲电影在线免费观看| 欧美在线短视频| 亚洲国产一区二区三区| 欧美亚洲动漫另类| 亚洲午夜一二三区视频| 欧美视频一区二区三区四区| 国产午夜精品久久久久久久 | 日韩美一区二区三区| 午夜激情综合网| 91精品久久久久久久久99蜜臂| 蜜桃一区二区三区在线| 日韩美女一区二区三区四区| 精品一区二区三区视频在线观看 | 色菇凉天天综合网| 亚洲综合区在线| 欧美高清www午色夜在线视频| 日本欧美在线观看| 精品不卡在线视频| 国产精品66部| 国产精品福利在线播放| 91精品1区2区| 日韩电影免费在线观看网站| 精品美女一区二区| 国产麻豆精品theporn| 中文字幕一区在线观看视频| 欧美系列亚洲系列| 国内精品第一页| 亚洲视频一区二区在线观看| 欧美日韩一区 二区 三区 久久精品| 天天色 色综合| 26uuu久久天堂性欧美| 国产亚洲欧洲997久久综合 | 91理论电影在线观看| 一区二区三区 在线观看视频| 日韩一区二区三区四区| 国产精品一区在线观看你懂的| 欧美国产精品劲爆| 欧美喷水一区二区| 国产麻豆视频一区| 亚洲一区成人在线| 久久久精品人体av艺术| 在线观看精品一区| 国产一区二区影院| 香蕉成人啪国产精品视频综合网| 欧美精品一区视频| 一本到一区二区三区| 激情五月婷婷综合| 亚洲成人综合视频| 国产精品女上位| 日韩一区二区高清| 91激情五月电影| 国产一区二区三区国产| 偷拍亚洲欧洲综合| 亚洲欧美偷拍三级| 久久久精品2019中文字幕之3| 欧美日韩综合在线免费观看| 成人av网站在线观看免费| 久久国产精品第一页| 午夜免费久久看| 亚洲人成小说网站色在线| 精品福利视频一区二区三区| 在线成人高清不卡| 99精品视频中文字幕| 国产伦精品一区二区三区免费迷| 日韩电影在线一区| 午夜一区二区三区视频| 亚洲视频一二区| 国产精品色婷婷久久58| 久久香蕉国产线看观看99| 91麻豆精品国产91久久久更新时间| 色综合久久综合| 99国产精品久久久久久久久久| 处破女av一区二区| 国产成人在线色| 国产一区中文字幕| 国产精品一区二区不卡| 狠狠色丁香久久婷婷综| 韩国三级电影一区二区| 国产一区二区电影| 久久9热精品视频| 久久99精品国产麻豆不卡| 麻豆国产一区二区| 精品亚洲成av人在线观看| 国模一区二区三区白浆| 国产乱码一区二区三区| 国产又黄又大久久| 国产成人午夜精品5599| 国产成人免费视| www.日韩精品| 91官网在线观看| 5858s免费视频成人| 制服丝袜激情欧洲亚洲| 亚洲精品在线免费播放| 久久久久免费观看| 久久久99久久| 久久精品夜色噜噜亚洲aⅴ| 国产欧美日韩中文久久| 国产精品高潮呻吟| 亚洲成av人片一区二区梦乃| 香蕉影视欧美成人| 精品一区二区免费| 狠狠狠色丁香婷婷综合久久五月| 国产精品99久久久久久有的能看| 国产专区综合网| 成人禁用看黄a在线| 91在线观看一区二区| 欧美亚洲动漫另类| 日韩精品一区国产麻豆| 亚洲欧美在线高清| 午夜精品一区二区三区电影天堂| 青娱乐精品视频| 成人美女视频在线观看| 欧美嫩在线观看| 国产午夜亚洲精品不卡| 亚洲国产日产av| 国产精品一卡二卡| 欧美网站大全在线观看| 久久综合狠狠综合久久综合88| 中文字幕一区二区日韩精品绯色| 亚洲欧美成aⅴ人在线观看| 亚洲第一在线综合网站| 国产精品77777| 欧美日韩不卡一区二区| 在线播放91灌醉迷j高跟美女 | 欧美另类变人与禽xxxxx| 久久综合久久鬼色中文字| 亚洲欧美日韩国产一区二区三区| 裸体健美xxxx欧美裸体表演|