source: rtems/c/src/lib/libbsp/arm/edb7312/startup/bspstart.c @ 7a6f8d0

4.104.115
Last change on this file since 7a6f8d0 was a196084, checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/08 at 19:06:10

2008-09-16 Joel Sherrill <joel.sherrill@…>

  • startup/bspstart.c: Remove unnecessary includes of rtems/libcsupport.h and rtems/libio.h.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 * Cirrus EP7312 Startup code
3 *
4 * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.com/license/LICENSE.
9 *
10 *  $Id$
11 */
12
13#include <bsp.h>
14#include <ep7312.h>
15#include <uart.h>
16
17/*
18 * Function prototypes
19 */
20extern void rtems_irq_mngt_init(void);
21
22/*
23 * NAME: bsp_start_default - BSP initialization function
24 *
25 *   This function is called before RTEMS is initialized
26 *   This function also configures the CPU's memory protection unit.
27 *
28 *
29 * RESTRICTIONS/LIMITATIONS:
30 *   Since RTEMS is not configured, no RTEMS functions can be called.
31 *
32 */
33void bsp_start_default( void )
34{
35  /* disable interrupts */
36  *EP7312_INTMR1 = 0;
37  *EP7312_INTMR2 = 0;
38
39  /*
40   * Init rtems exceptions management
41   */
42  rtems_exception_init_mngt();
43
44  /*
45   * Init rtems interrupt management
46   */
47  rtems_irq_mngt_init();
48} /* bsp_start */
49
50/*
51 *  By making this a weak alias for bsp_start_default, a brave soul
52 *  can override the actual bsp_start routine used.
53 */
54void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
Note: See TracBrowser for help on using the repository browser.