source: rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c @ 4773369

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

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

  • Makefile.am, configure.ac, clock/ckinit.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. Remove unnecessary includes of rtems/libio.h and rtems/libcsupport.h.
  • Property mode set to 100644
File size: 1.9 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) 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 *  Modifications of respective RTEMS file: COPYRIGHT (c) 1994.
15 *  EISCAT Scientific Association. M.Savitski
16 *
17 *  This material is a part of the MVME162 Board Support Package
18 *  for the RTEMS executive. Its licensing policies are those of the
19 *  RTEMS above.
20 *
21 *  $Id$
22 */
23
24#include <bsp.h>
25#include <page_table.h>
26
27/*
28 *  bsp_start
29 *
30 *  This routine does the bulk of the system initialization.
31 */
32void bsp_start( void )
33{
34  m68k_isr_entry       *monitors_vector_table;
35  int                   index;
36
37  /*
38   *  162Bug Vectors are at 0xFFE00000
39   *  162Bug Vectors on LX are at 0x00000000
40   */
41
42#if defined(mvme162lx)
43  monitors_vector_table = (m68k_isr_entry *)0x00000000;
44#else
45  monitors_vector_table = (m68k_isr_entry *)0xFFE00000;
46#endif
47
48  m68k_set_vbr( monitors_vector_table );
49
50  for ( index=2 ; index<=255 ; index++ )
51    M68Kvec[ index ] = monitors_vector_table[ 32 ];
52
53  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
54  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
55  M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
56  M68Kvec[ 47 ] = monitors_vector_table[ 47 ];   /* system call vector */
57
58  m68k_set_vbr( &M68Kvec );
59
60  /*
61   *  You may wish to make the VME arbitration round-robin here, currently
62   *  we leave it as it is.
63   */
64
65  /* set the Interrupt Base Vectors */
66
67  lcsr->vector_base = (VBR0 << 28) | (VBR1 << 24);
68
69  page_table_init();
70}
Note: See TracBrowser for help on using the repository browser.