/** * @file bspstart.c * * This file contains the GBA BSP startup package. * It includes application, board, and monitor specific initialization and * configuration. The generic CPU dependent initialization has been * performed before this routine is invoked. */ /* * RTEMS GBA BSP * * Copyright (c) 2004 Markku Puro * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * * $Id$ */ #include #include #include #include #include #include /** Chip registers */ volatile unsigned int *Regs = (unsigned int *)GBA_IO_REGS_ADDR; /** * @brief BSP Start * * Called before main is invoked. * * @param None * @return None */ void bsp_start_default( void ) { /* Init conio */ gba_textmode(CO60); /* Init rtems exceptions management * !!!!!GBA -- Can't use exception vectors in GBA because they are * already in GBA ROM BIOS */ /* rtems_exception_init_mngt(); */ /* Init rtems interrupt management */ if (bsp_interrupt_initialize() != RTEMS_SUCCESSFUL) { _CPU_Fatal_halt(0xe); } } /** * @brief weak alias for bsp_start_default * * By making this a weak alias for bsp_start_default, a brave soul * can override the actual bsp_start routine used. */ void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));