usrentry.c

来自「IXP425的BSP代码」· C语言 代码 · 共 40 行

C
40
字号
/* usrEntry.c - user entry point for compressed images *//* Copyright 1984-1998 Wind River Systems, Inc. *//*modification history--------------------01a,02jun98,ms   written*//*DESCRIPTIONThe routine usrEntry() is the entry point for compressed images.The decompression stub inflates the main VxWorks code into RAM,and then jumps to it. This is the entry point (i.e., the first address).It is important not to add any other routines before this one.*/#include "vxWorks.h"#include "usrConfig.h"/******************************************************************************** usrEntry - entry point for _romCompress and _rom images.*/ void usrEntry (int startType)    {#if     (CPU_FAMILY==I960)    sysInitAlt (startType);             /* jump to the i960 entry point */#endif#if (CPU_FAMILY==MIPS) && __GNUC__    __asm volatile (".extern _gp,0; la $gp,_gp");#endif    usrInit (startType);                /* all others procede below */    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?