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

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

?? os_cpu_c.c

?? 44binit.s ----- 初始化中斷、存儲器、堆棧等
?? C
字號:
/*
*********************************************************************************************************
*                                               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\n\t優龍科技\n");
        uHALr_printf("Http://www.ucdragon.com\n\n") ;
	   	uHALr_printf( "ST44B0X上運行uC/OS-II測試!\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一区二区三区免费野_久草精品视频
亚洲一区二区三区四区的| 国产农村妇女精品| 亚洲超碰97人人做人人爱| 欧美性生活影院| 日韩av不卡在线观看| 欧美高清视频www夜色资源网| 日韩专区中文字幕一区二区| 91精品国产色综合久久ai换脸| 毛片一区二区三区| 久久人人爽爽爽人久久久| 成人开心网精品视频| 一区二区三区在线视频播放| 欧美精品第1页| 国产精品资源在线| 国产精品不卡一区| 欧美久久免费观看| 国产一区二区三区免费看| 中国av一区二区三区| 欧美日韩激情在线| 精品一区二区免费| 亚洲精品视频观看| 日韩免费高清视频| 91蜜桃网址入口| 蜜臀va亚洲va欧美va天堂| 久久久亚洲国产美女国产盗摄 | 日韩欧美色综合网站| 国产一区二区三区黄视频| 国产精品国产三级国产| 337p亚洲精品色噜噜| 国产黄人亚洲片| 日韩在线一区二区三区| 中文字幕欧美激情| 91精品国产综合久久小美女| 不卡电影一区二区三区| 男人的天堂亚洲一区| 国产精品久久久久婷婷二区次| 制服丝袜日韩国产| 一本久道久久综合中文字幕| 精品在线免费视频| 亚洲v精品v日韩v欧美v专区| 欧美高清一级片在线观看| 在线成人免费观看| 一本大道久久a久久精二百 | 久久日一线二线三线suv| 色中色一区二区| 国产激情视频一区二区三区欧美 | 欧美激情综合网| 欧美一区二区视频在线观看| 色综合一区二区| 久久99久久久欧美国产| 亚洲午夜一区二区| 亚洲色欲色欲www| 日本一区二区三区电影| 91精品国产91久久久久久一区二区 | 欧美一区二区三区日韩| 一本色道a无线码一区v| 国产成人精品一区二| 精品一区二区三区影院在线午夜| 国产精品灌醉下药二区| 国产区在线观看成人精品| 欧美成人精品3d动漫h| 欧美日韩成人激情| 欧美日韩综合不卡| 在线欧美日韩国产| 91网上在线视频| 99视频精品全部免费在线| 成人永久看片免费视频天堂| 国内精品嫩模私拍在线| 捆绑调教一区二区三区| 午夜精品久久久久久久99水蜜桃| 亚洲伦理在线精品| 亚洲人被黑人高潮完整版| 国产精品精品国产色婷婷| 国产精品视频一二三区| 国产欧美日韩精品a在线观看| 久久日一线二线三线suv| 久久影院午夜片一区| 2019国产精品| 久久精品一区二区三区不卡牛牛| 久久久久久一级片| 中文字幕av一区二区三区| 国产日本欧美一区二区| 中文天堂在线一区| 国产精品传媒视频| 亚洲美女视频在线观看| 亚洲成人激情社区| 三级欧美韩日大片在线看| 日韩精品电影一区亚洲| 激情五月播播久久久精品| 国产乱淫av一区二区三区| 成人sese在线| 欧洲人成人精品| 3atv在线一区二区三区| 精品久久久久久综合日本欧美| 久久久久久久综合狠狠综合| 中文天堂在线一区| 亚洲午夜视频在线| 免费在线视频一区| 国产成人啪免费观看软件| 99久久婷婷国产| 欧美日韩中文字幕一区二区| 欧美一级片免费看| 欧美国产在线观看| 亚洲一区二区三区三| 久久99久久久久| 国产成人综合视频| 欧美三级三级三级| 国产午夜一区二区三区| 一区二区三区在线视频观看58| 日韩精品视频网| 成人自拍视频在线观看| 欧美日韩成人综合天天影院 | 欧美日本一区二区在线观看| 日韩丝袜美女视频| 最新国产の精品合集bt伙计| 天堂影院一区二区| 成人免费高清视频在线观看| 欧美亚洲一区三区| 欧美精彩视频一区二区三区| 亚洲成av人片在线| 成人在线视频一区| 911精品国产一区二区在线| 国产精品久久久爽爽爽麻豆色哟哟| 亚洲成av人片一区二区| 成人精品一区二区三区中文字幕| 欧美男男青年gay1069videost | 色久优优欧美色久优优| 精品裸体舞一区二区三区| 中文字幕在线观看不卡视频| 日韩av电影免费观看高清完整版在线观看 | 亚洲第一综合色| 成人高清免费观看| 日韩视频免费观看高清在线视频| 亚洲视频一区二区免费在线观看| 狠狠色丁香久久婷婷综合_中| 欧洲色大大久久| 国产精品麻豆久久久| 精品一区二区三区久久久| 欧美高清性hdvideosex| 日韩毛片高清在线播放| 精品亚洲免费视频| 69p69国产精品| 亚洲自拍都市欧美小说| 99re这里都是精品| 国产欧美日韩三级| 国产美女av一区二区三区| 欧美一级国产精品| 三级精品在线观看| 欧美亚洲另类激情小说| 亚洲精品国产精华液| 91丨九色丨蝌蚪富婆spa| 久久精品人人爽人人爽| 精品午夜久久福利影院| 日韩精品一区二区在线观看| 婷婷综合五月天| 欧美色电影在线| 一区二区三区中文字幕精品精品 | 亚洲成人福利片| 欧美日韩三级在线| 亚洲夂夂婷婷色拍ww47| 色综合一区二区三区| 亚洲欧美日韩国产中文在线| 91美女在线看| 亚洲精品一卡二卡| 欧洲av在线精品| 亚洲国产一区二区在线播放| 91国偷自产一区二区三区观看| 一卡二卡三卡日韩欧美| 在线视频观看一区| 亚洲小少妇裸体bbw| 欧美猛男男办公室激情| 偷偷要91色婷婷| 欧美一区二区三区日韩视频| 久久91精品国产91久久小草| 久久一区二区视频| 国产成人日日夜夜| 综合久久久久久| 欧美中文字幕一区二区三区亚洲| 亚洲一二三四在线| 51精品久久久久久久蜜臀| 极品销魂美女一区二区三区| 国产视频一区二区在线| 成人黄色a**站在线观看| 亚洲欧美另类在线| 555夜色666亚洲国产免| 久久99精品一区二区三区 | 国产欧美一区二区在线| 波多野结衣中文字幕一区 | 97se亚洲国产综合自在线| 中文字幕一区二区三区色视频| 91在线一区二区三区| 亚洲专区一二三| 精品毛片乱码1区2区3区| 国产91丝袜在线观看| 亚洲精品一二三区| 日韩你懂的在线观看| av成人免费在线| 亚洲黄色小视频| 日韩三级精品电影久久久 | 久久久噜噜噜久久人人看|