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

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.1 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.org/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")));
Note: See TracBrowser for help on using the repository browser.