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

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

?? os_cpu_c.c.bak

?? ucos-II在S3C44BO下的移植
?? BAK
字號:
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                         The Real-Time Kernel
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                          All Rights Reserved
*                        (c) Copyright ARM Limited 1999.  All rights reserved.
*
*                                          ARM Specific code
*
*
* File : OS_CPU_C.C
*********************************************************************************************************
*/

#define  OS_CPU_GLOBALS
#include "includes.h"

/*
*********************************************************************************************************
*                                        INITIALIZE A TASK'S STACK
*
* Description: This function is called by either OSTaskCreate() or OSTaskCreateExt() to initialize the
*              stack frame of the task being created.  This function is highly processor specific.
*
* Arguments  : task          is a pointer to the task code
*
*              pdata         is a pointer to a user supplied data area that will be passed to the task
*                            when the task first executes.
*
*              ptos          is a pointer to the top of stack.  It is assumed that 'ptos' points to
*                            a 'free' entry on the task stack.  If OS_STK_GROWTH is set to 1 then 
*                            'ptos' will contain the HIGHEST valid address of the stack.  Similarly, if
*                            OS_STK_GROWTH is set to 0, the 'ptos' will contains the LOWEST valid address
*                            of the stack.
*
*              opt           specifies options that can be used to alter the behavior of OSTaskStkInit().
*                            (see uCOS_II.H for OS_TASK_OPT_???).
*
* Returns    : Always returns the location of the new top-of-stack' once the processor registers have
*              been placed on the stack in the proper order.
*
* Note(s)    : Interrupts are enabled when your task starts executing. You can change this by setting the
*              PSW to 0x0002 instead.  In this case, interrupts would be disabled upon task startup.  The
*              application code would be responsible for enabling interrupts at the beginning of the task
*              code.  You will need to modify OSTaskIdle() and OSTaskStat() so that they enable 
*              interrupts.  Failure to do this will make your system crash!
*********************************************************************************************************
*/

void *OSTaskStkInit (void (*task)(void *pd), void *pdata, void *ptos, INT16U opt)
{
    unsigned int *stk;

    opt    = opt;                           /* 'opt' is not used, prevent warning                      */
    stk    = (unsigned int *)ptos;          /* Load stack pointer                                      */

    /* build a context for the new task */
    *--stk = (unsigned int) task;       /* pc */
    *--stk = (unsigned int) task;       /* lr */

    *--stk = 0;                         /* r12 */
    *--stk = 0;                         /* r11 */
    *--stk = 0;                         /* r10 */
    *--stk = 0;                         /* r9 */
    *--stk = 0;                         /* r8 */
    *--stk = 0;                         /* r7 */
    *--stk = 0;                         /* r6 */
    *--stk = 0;                         /* r5 */
    *--stk = 0;                         /* r4 */
    *--stk = 0;                         /* r3 */
    *--stk = 0;                         /* r2 */
    *--stk = 0;                         /* r1 */
    *--stk = (unsigned int) pdata;      /* r0 */
    *--stk = (SVC32MODE|0x0);			/* cpsr  IRQ, FIQ disable*/
    *--stk = (SVC32MODE|0x0);			/* spsr  IRQ, FIQ disable */


    return ((void *)stk);
}

/*$PAGE*/
#if OS_CPU_HOOKS_EN
/*
*********************************************************************************************************
*                                          TASK CREATION HOOK
*
* Description: This function is called when a task is created.
*
* Arguments  : ptcb   is a pointer to the task control block of the task being created.
*
* Note(s)    : 1) Interrupts are disabled during this call.
*********************************************************************************************************
*/
void OSTaskCreateHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                       /* Prevent compiler warning                                     */
}


/*
*********************************************************************************************************
*                                           TASK DELETION HOOK
*
* Description: This function is called when a task is deleted.
*
* Arguments  : ptcb   is a pointer to the task control block of the task being deleted.
*
* Note(s)    : 1) Interrupts are disabled during this call.
*********************************************************************************************************
*/
void OSTaskDelHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                       /* Prevent compiler warning                                     */
}

/*
*********************************************************************************************************
*                                           TASK SWITCH HOOK
*
* Description: This function is called when a task switch is performed.  This allows you to perform other
*              operations during a context switch.
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts are disabled during this call.
*              2) It is assumed that the global pointer 'OSTCBHighRdy' points to the TCB of the task that
*                 will be 'switched in' (i.e. the highest priority task) and, 'OSTCBCur' points to the 
*                 task being switched out (i.e. the preempted task).
*********************************************************************************************************
*/
void OSTaskSwHook (void)
{
}

/*
*********************************************************************************************************
*                                           STATISTIC TASK HOOK
*
* Description: This function is called every second by uC/OS-II's statistics task.  This allows your 
*              application to add functionality to the statistics task.
*
* Arguments  : none
*********************************************************************************************************
*/
void OSTaskStatHook (void)
{
}

/*
*********************************************************************************************************
*                                               TICK HOOK
*
* Description: This function is called every tick.
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts may or may not be ENABLED during this call.
*********************************************************************************************************
*/

void OSTimeTickHook (void)
{
}
#endif

#define BUILD_DATE "Date: " __DATE__ "\n"

/*
 * Initialize an ARM Target board
 */
void
 ARMTargetInit(void)
{
    /* ---- Tell the world who we are ---------------------------------- */
    uHALr_printf("uCOS-II Running on a") ;
    //Uart_Printf("uCOS-II Running on a") ;
#if defined(EBSA285)
    uHALr_printf("n EBSA-285 (21285 evaluation board)\n") ;
#elif defined(BRUTUS) 
    uHALr_printf(" Brutus (SA-1100 verification platform)\n") ;
#elif defined(INTEGRATOR) 
    uHALr_printf("n Integrator board\n") ;
#elif defined(PROSPECTOR) 
    uHALr_printf(" Prospector board\n") ;
#elif defined(SAMSUNG)
    uHALr_Printf("\n    uuuuuuu    uuuuuu      uu       uu  uuuuuu      uuu   uuuu uuuu ");
	uHALr_Printf("\n     uu   uu  uu   uu     uuu      uuu   uu  uu    uu uu   uu   uu  ");
	uHALr_Printf("\n     uu uu    uu   uu    uuuu     uuuu   uu  uu   uu   uu   uu uu   ");
	uHALr_Printf("\n     uu uu    uu        uu uu    uu uu   uu  uu   uu   uu   uu uu   ");
	uHALr_Printf("\n     uuuuu     uu       uu uu    uu uu   uuuuu    uu   uu    uuu    ");
	uHALr_Printf("\n     uu uu      uuu    uu  uu   uu  uu   uu  uu   uu   uu    uuu    ");
	uHALr_Printf("\n     uu uu        uu   uu  uu   uu  uu   uu   uu  uu   uu    uuu    ");
	uHALr_Printf("\n     uu            uu  uuuuuuu  uuuuuuu  uu   uu  uu   uu   uu uu   ");
	uHALr_Printf("\n     uu       uu   uu      uu       uu   uu   uu  uu   uu   uu uu   ");
	uHALr_Printf("\n     uu       uu   uu      uu       uu   uu  uu    uu uu   uu   uu  ");
  	uHALr_Printf("\n    uuuu      uuuuuu     uuuuu    uuuuu uuuuuu      uuu   uuuu uuuu \n");
#else
    uHALr_printf("n unknown ARM board\n") ;
#endif
    uHALr_printf(uHAL_VERSION_STRING); 
    uHALr_printf("\n") ;
    uHALr_printf(BUILD_DATE);
    uHALr_printf("\n") ;

#ifdef DEBUG
    uHALr_printf("Initialising target\n");
#endif

    /* ---- disable the MMU        ------------------------------------- */
    uHALr_ResetMMU();

    /* ---- disable interrupts (IRQs) --------------------------------- */
    ARMDisableInt();

    /* ---- soft vectors ---------------------------------------------- */
#ifdef DEBUG
    uHALr_printf("Setting up soft vectors\n");
#endif
    /* Define pre & post-process routines for Interrupt */
    uHALir_DefineIRQ((void *)IrqStart, (void *)IrqFinish, (void *) 0);
    uHALr_InitInterrupts();

#ifdef DEBUG
    uHALr_printf("Timer init\n");
#endif
    uHALr_InitTimers();

#ifdef DEBUG
    uHALr_printf("targetInit() complete\n");
#endif
}                               /* targetInit */

/* start the ARM target running */
void
 ARMTargetStart(void)
{
#ifdef DEBUG
    uHALr_printf("Starting target\n") ;
#endif

    /* request the system timer */
    if (uHALr_RequestSystemTimer(
                                 (void *) OSTimeTick,
                                 (const unsigned char *)"uCOS-II") <= 0)
        uHALr_printf("Timer/IRQ busy\n");

    /* Start system timer & enable the interrupt. */
    uHALr_InstallSystemTimer();
}

extern void IRQContextSwap(void);   /* post DispatchIRQ processing (the _real_ one) */

/* just 'notice' that we need to change context */
int need_to_swap_context = 0 ;
void OSIntCtxSw(void) {
    need_to_swap_context = 1;
}

/* This is what uCOS does at the start of an IRQ */
void IrqStart(void)
{
    /* increment nesting counter */
    OSIntNesting++;
}

/* This is what uCOS does at the end of an IRQ */
void *IrqFinish(void)
{
    OSIntExit() ;
    if (need_to_swap_context) {
//        need_to_swap_context = 0 ;
        return ((void *)IRQContextSwap) ;
    } else {
        return (void *)0;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频永久免费| 色综合久久久久综合| 亚洲va欧美va人人爽| 亚洲视频精选在线| 国产精品国产成人国产三级| 国产精品美女久久久久久久久| 国产精品女同一区二区三区| 中文字幕av在线一区二区三区| 中文一区在线播放| 国产精品高潮呻吟| 亚洲精品乱码久久久久久久久| 亚洲精品一二三| 亚洲va中文字幕| 麻豆精品在线看| 国产精品中文有码| av一区二区三区在线| 在线视频综合导航| 欧美一区二区免费观在线| 欧美成人一区二区三区在线观看| 国产视频一区在线播放| 国产精品久久久久桃色tv| 夜夜爽夜夜爽精品视频| 日韩激情av在线| 国产福利91精品一区| 91在线播放网址| 欧美二区乱c少妇| 国产欧美一区二区精品仙草咪| √…a在线天堂一区| 日韩国产一二三区| 国产福利不卡视频| 欧美三级乱人伦电影| 26uuu精品一区二区三区四区在线| 国产欧美一二三区| 视频在线观看一区二区三区| 成人污视频在线观看| 91免费版在线看| 欧美一二区视频| 中文一区在线播放| 日本vs亚洲vs韩国一区三区| av亚洲精华国产精华精| 67194成人在线观看| 国产精品美女久久久久久久久久久| 五月婷婷欧美视频| 不卡高清视频专区| 日韩午夜av一区| 一区二区在线观看视频 | 久久久国产午夜精品| 亚洲欧美国产77777| 激情综合色综合久久| 欧美日韩精品一区二区在线播放 | 激情深爱一区二区| 色香蕉久久蜜桃| 日本一区二区不卡视频| 蜜桃精品视频在线观看| 欧美日韩国产色站一区二区三区| 国产精品人成在线观看免费| 国内一区二区视频| 7777精品久久久大香线蕉| 艳妇臀荡乳欲伦亚洲一区| 国产高清精品网站| 精品捆绑美女sm三区| 日韩激情在线观看| 欧美乱妇23p| 一区二区三区精品视频在线| 99国产精品久久久| 中文字幕在线一区免费| 国产成人福利片| 久久久久久久一区| 国产精品99久久久久久久vr| 日韩欧美资源站| 美女视频黄 久久| 欧美一区二区成人| 三级欧美在线一区| 欧美日韩一卡二卡| 午夜精品久久久| 欧美区一区二区三区| 亚洲444eee在线观看| 欧美性猛交一区二区三区精品| 亚洲理论在线观看| 在线亚洲免费视频| 亚洲国产乱码最新视频| 欧美色图片你懂的| 午夜电影网一区| 91精品国产综合久久久蜜臀粉嫩| 日本一道高清亚洲日美韩| 欧美老肥妇做.爰bbww视频| 婷婷国产在线综合| 日韩一区二区视频在线观看| 精品一区二区在线看| 久久综合给合久久狠狠狠97色69| 亚洲欧美日韩久久| 欧美吻胸吃奶大尺度电影| 亚洲va国产天堂va久久en| 欧美电视剧免费观看| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲精品在线网站| hitomi一区二区三区精品| 亚洲综合一二三区| 日韩欧美123| 成人av在线播放网址| 亚洲综合色成人| 日韩精品一区二区三区四区| 国产精品91xxx| 亚洲人成精品久久久久久 | 视频一区视频二区中文字幕| 日韩一区二区免费电影| 国产成人亚洲综合a∨婷婷| 中文字幕第一区二区| 欧美日韩三级在线| 国产电影一区二区三区| 一级特黄大欧美久久久| 欧美mv日韩mv亚洲| av亚洲产国偷v产偷v自拍| 亚洲国产sm捆绑调教视频 | 91视频.com| 日本一道高清亚洲日美韩| 中文字幕av一区二区三区高| 欧美精品视频www在线观看| 国产成人在线视频网站| 亚洲一卡二卡三卡四卡无卡久久| 久久精品无码一区二区三区| 欧美影视一区二区三区| 国产东北露脸精品视频| 日韩国产精品大片| 综合久久给合久久狠狠狠97色 | 久久久av毛片精品| 欧美日韩在线电影| 处破女av一区二区| 久久精品国产一区二区三| 亚洲综合在线电影| 国产午夜精品福利| 日韩女优制服丝袜电影| 欧洲av在线精品| 成人禁用看黄a在线| 国产乱人伦精品一区二区在线观看| 亚洲午夜一二三区视频| 最近中文字幕一区二区三区| 久久久精品tv| 亚洲精品一区二区三区精华液 | www久久精品| 日韩一级精品视频在线观看| 欧美日韩精品二区第二页| 97久久精品人人爽人人爽蜜臀| 国产乱码精品1区2区3区| 美国精品在线观看| 蜜桃久久av一区| 久久99精品一区二区三区三区| 奇米一区二区三区| 男人的天堂亚洲一区| 日韩在线a电影| 日日摸夜夜添夜夜添国产精品| 一区二区三区不卡视频| 一区二区在线观看视频在线观看| 亚洲欧美日韩中文播放 | 欧美日韩情趣电影| 欧美综合色免费| 欧美视频在线一区| 7777精品伊人久久久大香线蕉超级流畅| 欧美视频在线观看一区| 欧美日韩一卡二卡三卡| 欧美久久久久久久久| 在线综合视频播放| 精品99一区二区三区| 国产色产综合色产在线视频| 欧美国产在线观看| 亚洲视频香蕉人妖| 午夜av一区二区三区| 青草av.久久免费一区| 久久99精品久久久久久动态图 | 欧美日韩国产a| 欧美www视频| 国产日韩欧美高清| 国产精品高潮呻吟久久| 一区二区三区在线高清| 天天av天天翘天天综合网| 久久99久久99精品免视看婷婷| 国产白丝精品91爽爽久久| 99久久精品免费看国产免费软件| 在线观看中文字幕不卡| 91精品国产91热久久久做人人| 精品国产一区二区三区不卡| 中文字幕亚洲欧美在线不卡| 午夜视频一区在线观看| 国产一区三区三区| 91理论电影在线观看| 日韩一级视频免费观看在线| 国产精品女主播在线观看| 亚洲国产精品久久人人爱蜜臀| 韩国精品主播一区二区在线观看| proumb性欧美在线观看| 欧美伦理影视网| 国产精品久久久久久一区二区三区 | 欧美性淫爽ww久久久久无| 日韩精品在线一区| 中文字幕一区二区三区不卡在线| 日韩中文字幕亚洲一区二区va在线| 国产成人av一区二区三区在线观看| 欧美午夜精品久久久久久孕妇 | 成人免费黄色大片| 欧美日韩久久久久久|