source: rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.5 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.org/license/LICENSE.
13 *
14 *  MVME147 port for TNI - Telecom Bretagne
15 *  by Dominique LE CAMPION (Dominique.LECAMPION@enst-bretagne.fr)
16 *  May 1996
17 */
18
19#include <bsp.h>
20
21/*
22 *  bsp_start
23 *
24 *  This routine does the bulk of the system initialization.
25 */
26
27void bsp_start( void )
28{
29  rtems_isr_entry       *monitors_vector_table;
30  int                   index;
31
32  monitors_vector_table = (rtems_isr_entry *)0;   /* 135Bug Vectors are at 0 */
33  m68k_set_vbr( monitors_vector_table );
34
35  for ( index=2 ; index<=255 ; index++ )
36    M68Kvec[ index ] = monitors_vector_table[ 32 ];
37
38  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
39  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
40  M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
41  M68Kvec[ 47 ] = monitors_vector_table[ 47 ];   /* system call vector */
42
43  m68k_set_vbr( &M68Kvec );
44
45  pcc->int_base_vector = PCC_BASE_VECTOR; /* Set the PCC int vectors base */
46
47  (*(uint8_t*)0xfffe2001) = 0x08;
48      /* make VME access round-robin */
49
50  rtems_cache_enable_instruction();
51  rtems_cache_enable_data();
52}
Note: See TracBrowser for help on using the repository browser.