void sysHwInit2 (void)
    {
    static BOOL initialized = FALSE;
//    volatile UINT32 tempData;

    if (initialized)
        {
        return;
        }
#ifdef _WRS_CONFIG_SMP
    /* enable the snoop control unit */

    *(UINT32 *)(PBXA9_SCU_CTRL) = PBXA9_SCU_CTRL_EN;
#endif /* _WRS_CONFIG_SMP */

    intLibInit(INT_LVL_MAX,INT_LVL_MAX,INT_MODE);
    armGicCtlInit();

    (void)intConnect ((VOIDFUNCPTR*)INT_LVL_SYSTIMER, sysClkInt, 0);

	//(void)intConnect (INUM_TO_IVEC (AUX_TIMER_INT_LVL), sysAuxClkInt, 0);

#ifdef	INCLUDE_TTY_DEV
        sysSerialHwInit2 ();
#endif

    initialized = TRUE;

    }
Example #2
0
File: sysLib.c Project: phoboz/vmx
void sysHwInit2(
    void
    )
{
    /* Connect system timer interrupt handler */
    intConnectDefault(0x20, sysClockInt, NULL);

#ifdef INCLUDE_PC_CONSOLE
    intConnectDefault(0x21, kbdIntr, (void *) 0);
#endif /* INCLUDE_PC_CONSOLE */

    sysSerialHwInit();
    sysSerialHwInit2();

#ifdef INCLUDE_PC_MOUSE
    /* TODO */
#endif /* INCLUDE_PC_MOUSE */
}
Example #3
0
void sysHwInit(void)
{
    sysSerialHwInit2();
}