source: rtems/c/src/lib/libbsp/m68k/mvme136/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.3 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
15#include <bsp.h>
16#include <rtems/zilog/z8036.h>
17
18/*
19 *  bsp_start
20 *
21 *  This routine does the bulk of the system initialization.
22 */
23void bsp_start( void )
24{
25  rtems_isr_entry *monitors_vector_table;
26  int             index;
27
28  monitors_vector_table = (rtems_isr_entry *)0;   /* 135Bug Vectors are at 0 */
29  m68k_set_vbr( monitors_vector_table );
30
31  for ( index=2 ; index<=255 ; index++ )
32    M68Kvec[ index ] = monitors_vector_table[ 32 ];
33
34  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
35  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
36  M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
37  M68Kvec[ 47 ] = monitors_vector_table[ 47 ];   /* system call vector */
38
39  m68k_set_vbr( &M68Kvec );
40
41  (*(uint8_t*)0xfffb0067) = 0x7f; /* make VME access round-robin */
42
43  rtems_cache_enable_instruction();
44}
Note: See TracBrowser for help on using the repository browser.