source: rtems/c/src/lib/libbsp/m68k/mcf5206elite/startup/bspstart.c @ e56c3546

4.104.114.84.95
Last change on this file since e56c3546 was e56c3546, checked in by Joel Sherrill <joel.sherrill@…>, on 10/26/01 at 19:30:11

2001-10-26 Victor V. Vengerov <vvv@…>

  • New BSP for MCF5206eLITE evaluation board BSP.
  • ChangeLog?, README, bsp_specs, configure.ac, console/console.c, console/.cvsignore, i2c/i2c.c, i2c/i2cdrv.c, i2c/.cvsignore, include/bsp.h, include/bspopts.h.in, include/coverhd.h, include/ds1307.h, include/i2c.h, include/i2cdrv.h, include/nvram.h, include/.cvsignore, nvram/nvram.c, nvram/.cvsignore, start/start.S, start/.cvsignore, startup/bspclean.c, startup/bspstart.c, startup/gdbinit, startup/init5206e.c, startup/linkcmds, startup/linkcmds.flash, startup/.cvsignore, times, tod/ds1307.c, tod/todcfg.c, tod/.cvsignore, tools/.cvsignore, tools/configure.ac, tools/runtest, tools/changes, wrapup/.cvsignore, .cvsignore: New files.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*
2 *  BSP startup
3 *
4 *  This routine starts the application.  It includes application,
5 *  board, and monitor specific initialization and configuration.
6 *  The generic CPU dependent initialization has been performed
7 *  before this routine is invoked.
8 *
9 *  Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
10 *  Author: Victor V. Vengerov <vvv@oktet.ru>
11 *
12 *  Based on work:
13 *  Author:
14 *    David Fiddes, D.J@fiddes.surfaid.org
15 *    http://www.calm.hw.ac.uk/davidf/coldfire/
16 *
17 *  COPYRIGHT (c) 1989-1998.
18 *  On-Line Applications Research Corporation (OAR).
19 *  Copyright assigned to U.S. Government, 1994.
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *
24 *  http://www.OARcorp.com/rtems/license.html.
25 *
26 *  $Id$
27 */
28
29#include <bsp.h>
30#include <rtems/libio.h>
31 
32#include <rtems/libcsupport.h>
33 
34#include <string.h>
35
36/*
37 *  The original table from the application and our copy of it with
38 *  some changes.
39 */
40
41extern rtems_configuration_table Configuration;
42rtems_configuration_table  BSP_Configuration;
43
44rtems_cpu_table Cpu_table;
45
46unsigned long _RamSize;
47
48char *rtems_progname;
49
50/*
51 *  Use the shared implementations of the following routines
52 */
53 
54void bsp_postdriver_hook(void);
55void bsp_libc_init( void *, unsigned32, int );
56void bsp_pretasking_hook(void);               /* m68k version */
57
58/* bsp_start --
59 *     This routine does the bulk of the system initialisation.
60 */
61void bsp_start( void )
62{
63    extern void *_WorkspaceBase;
64
65    /*
66     *  Need to "allocate" the memory for the RTEMS Workspace and
67     *  tell the RTEMS configuration where it is.  This memory is
68     *  not malloc'ed.  It is just "pulled from the air".
69     */
70
71    BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
72
73    /*
74     * Account for the console's resources
75     */
76    console_reserve_resources( &BSP_Configuration );
77   
78    /*
79     *  initialize the CPU table for this BSP
80     */
81    Cpu_table.pretasking_hook = bsp_pretasking_hook;  /* init libc, etc. */
82
83    Cpu_table.postdriver_hook = bsp_postdriver_hook;
84
85    Cpu_table.do_zero_of_workspace = TRUE;
86
87    Cpu_table.interrupt_stack_size = 4096;
88
89    Cpu_table.interrupt_vector_table = (m68k_isr *)0; /* vectors at start of RAM */
90
91}
Note: See TracBrowser for help on using the repository browser.