예제 #1
0
파일: hardware.c 프로젝트: nesl/sos-2x
//----------------------------------------------------------------------------

//----------------------------------------------------------------------------
//  GLOBAL DATA
//----------------------------------------------------------------------------
//static uint8_t reset_flag NOINIT_VAR;

/**
 * @brief Kernel jump table
 * The table entries are defined in kertable.h
 */

/** Append any processor or platform specific kernel tables */
#if defined(PROC_KER_TABLE) && defined(PLAT_KER_TABLE)

PGM_VOID_P ker_jumptable[128] PROGMEM = SOS_KER_TABLE( CONCAT_TABLES(PROC_KER_TABLE , PLAT_KER_TABLE) );

#elif defined(PROC_KER_TABLE)

PGM_VOID_P ker_jumptable[128] PROGMEM = SOS_KER_TABLE(PROC_KER_TABLE);

#elif defined(PLAT_KER_TABLE)

PGM_VOID_P ker_jumptable[128] PROGMEM = SOS_KER_TABLE(PLAT_KER_TABLE);

#else

PGM_VOID_P ker_jumptable[128] PROGMEM = SOS_KER_TABLE(NULL);

#endif
예제 #2
0
파일: hardware.c 프로젝트: qinzb/WeOS
//----------------------------------------------------------------------------
//  Global data declarations
//----------------------------------------------------------------------------
static uint8_t reset_flag NOINIT_VAR;
/**
 * @brief Kernel jump table
 * The table entries are defined in kertable.h
 */

#ifdef SOS_SFI
PGM_VOID_P ker_jumptable[128] PROGMEM = SOS_SFI_KER_TABLE;
#else
#if defined(PROC_KER_TABLE) && defined(PLAT_KER_TABLE)
PGM_VOID_P ker_jumptable[128] PROGMEM =
    SOS_KER_TABLE(CONCAT_TABLES(PROC_KER_TABLE,PLAT_KER_TABLE));
#elif defined(PROC_KER_TABLE)
PGM_VOID_P ker_jumptable[128] PROGMEM =
    SOS_KER_TABLE(PROC_KER_TABLE);
#elif defined(PLAT_KER_TABLE)
PGM_VOID_P ker_jumptable[128] PROGMEM =
    SOS_KER_TABLE(PLAT_KER_TABLE);
#else
PGM_VOID_P ker_jumptable[128] PROGMEM =
    SOS_KER_TABLE(NULL);
#endif
#endif//SOS_SFI


//----------------------------------------------------------------------------
//  Funcation declarations