source: rtems/c/src/lib/libbsp/sh/shared/bspstart.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  This routine starts the application.  It includes application,
3 *  board, and monitor specific initialization and configuration.
4 *  The generic CPU dependent initialization has been performed
5 *  before this routine is invoked.
6 *
7 *  COPYRIGHT (c) 2001.
8 *  Ralf Corsepius (corsepiu@faw.uni-ulm.de).
9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 *  COPYRIGHT (c) 2001.
15 *  On-Line Applications Research Corporation (OAR).
16 *
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.rtems.com/license/LICENSE.
20 */
21
22#include <bsp.h>
23
24uint32_t bsp_clicks_per_second;
25
26#ifndef START_HW_INIT
27  void bsp_hw_init(void);
28#endif
29
30/*
31 *  bsp_start
32 *
33 *  This routine does the bulk of the system initialization.
34 */
35void bsp_start( void )
36{
37  /*
38   * For real boards you need to setup the hardware
39   * and need to copy the vector table from rom to ram.
40   *
41   * Depending on the board this can either be done from inside the rom
42   * startup code, rtems startup code or here.
43   */
44
45  #ifndef START_HW_INIT
46    /* board hardware setup here, or from 'start.S' */
47    bsp_hw_init();
48  #endif
49
50  /*
51   *  initialize the interrupt stack for this BSP
52   */
53  #if ( CPU_ALLOCATE_INTERRUPT_STACK == FALSE )
54    _CPU_Interrupt_stack_low = &CPU_Interrupt_stack_low ;
55    _CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ;
56  #endif
57
58  /*
59   *  initialize the device driver parameters
60   */
61  bsp_clicks_per_second = CPU_CLOCK_RATE_HZ;
62}
Note: See TracBrowser for help on using the repository browser.