source: rtems/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c @ 71c00c56

4.104.115
Last change on this file since 71c00c56 was 71c00c56, checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/08 at 19:01:46

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

  • clock/clock.c, startup/bspstart.c, startup/linkcmds: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
  • startup/bspgetworkarea.c: New file.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  This set of routines 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 any of these are invoked.
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#include <bsp.h>
18
19/*
20 *  Use the shared implementations of the following routines
21 */
22
23extern void bsp_spurious_initialize();
24
25/*
26 *  bsp_pretasking_hook
27 *
28 *  BSP pretasking hook.  Called just before drivers are initialized.
29 *  Used to setup libc and install any BSP extensions.
30 */
31
32void bsp_pretasking_hook(void)
33{
34  bsp_spurious_initialize();
35}
36
37/*
38 *  bsp_start
39 *
40 *  This routine does the bulk of the system initialization.
41 */
42
43#include <rtems/bspIo.h>
44
45BSP_output_char_function_type           BSP_output_char;
46BSP_polling_getchar_function_type       BSP_poll_char;
47extern void C4X_BSP_output_char(char c);
48
49void bsp_start( void )
50{
51  BSP_output_char = C4X_BSP_output_char;
52  BSP_poll_char = (BSP_polling_getchar_function_type) NULL;
53}
Note: See TracBrowser for help on using the repository browser.