source: rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c @ 754f51b6

4.115
Last change on this file since 754f51b6 was 754f51b6, checked in by Joel Sherrill <joel.sherrill@…>, on 10/07/14 at 22:29:29

m68k/mvme136/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  This routine does the bulk of the system initialization.
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#include <bsp.h>
15#include <bsp/bootcard.h>
16#include <rtems/zilog/z8036.h>
17
18void bsp_start( void )
19{
20  rtems_isr_entry *monitors_vector_table;
21  int             index;
22
23  monitors_vector_table = (rtems_isr_entry *)0;   /* 135Bug Vectors are at 0 */
24  m68k_set_vbr( monitors_vector_table );
25
26  for ( index=2 ; index<=255 ; index++ )
27    M68Kvec[ index ] = monitors_vector_table[ 32 ];
28
29  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
30  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
31  M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
32  M68Kvec[ 47 ] = monitors_vector_table[ 47 ];   /* system call vector */
33
34  m68k_set_vbr( &M68Kvec );
35
36  (*(uint8_t*)0xfffb0067) = 0x7f; /* make VME access round-robin */
37
38  rtems_cache_enable_instruction();
39}
Note: See TracBrowser for help on using the repository browser.