source: rtems/c/src/lib/libbsp/arm/gumstix/startup/bspstart.c @ b1e8a58

4.115
Last change on this file since b1e8a58 was dd8df59, checked in by Sebastian Huber <sebastian.huber@…>, on 11/14/12 at 12:59:27

bsps: Interrupt initialization error is fatal

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  By Yang Xi <hiyangxi@gmail.com>.
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 */
8
9#include <bsp.h>
10#include <bsp/irq-generic.h>
11#include <rtems/libcsupport.h>
12#include <rtems/libio.h>
13#include <pxa255.h>
14
15/* Function prototypes */
16void rtems_exception_init_mngt(void);
17
18/*
19 *
20 * NAME: bsp_start_default - BSP initialization function
21 *
22 * DESCRIPTION:
23 *   This function is called before RTEMS is initialized and used
24 *   adjust the kernel's configuration.
25 *
26 *   This function also configures the CPU's memory protection unit.
27 *
28 * RESTRICTIONS/LIMITATIONS:
29 *   Since RTEMS is not configured, no RTEMS functions can be called.
30 *
31 */
32void bsp_start_default( void )
33{
34  /* disable interrupts */
35  XSCALE_INT_ICMR = 0x0;
36  rtems_exception_init_mngt();
37  bsp_interrupt_initialize();
38} /* bsp_start */
39
40/*
41 *  By making this a weak alias for bsp_start_default, a brave soul
42 *  can override the actual bsp_start routine used.
43 */
44void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
45
46
47void bsp_reset( void )
48{
49#if ON_SKYEYE == 1
50  SKYEYE_MAGIC_ADDRESS = 0xff;
51#endif
52}
Note: See TracBrowser for help on using the repository browser.