source: rtems/c/src/lib/libbsp/m68k/idp/startup/bspstart.c @ bb9448b

4.115
Last change on this file since bb9448b was bb9448b, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 7, 2014 at 10:23:28 PM

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

  • Property mode set to 100644
File size: 1.5 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
17unsigned char *duart_base;
18extern struct duart_regs duart_info;
19
20#define DELAY 5000
21
22void led_putnum(void);
23
24void bsp_start( void )
25{
26  rtems_isr_entry       *monitors_vector_table;
27  int                   index;
28
29  /* RAM size set in linker script */
30  duart_base    = (unsigned char *)DUART_ADDR;
31
32  /*
33   *  Set the VBR here to the monitor's default.
34   */
35  monitors_vector_table = (rtems_isr_entry *)0;
36   /* This is where you set vector base register = 0 */
37  m68k_set_vbr( monitors_vector_table );
38
39  /* The vector interrupt table for the 680x0 is in appendix B-2
40   *  of the M68000 Family Programmer's reference table
41   */
42  for ( index=2 ; index<=255 ; index++ )
43    M68Kvec[ index ] = monitors_vector_table[ 32 ];
44
45  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
46  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
47  M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
48
49  /*
50   *  Set the VBR here if you do not want to use the monitor's vector table.
51   */
52
53  m68k_set_vbr( &M68Kvec );
54
55  rtems_cache_enable_instruction();
56  rtems_cache_enable_data();
57
58/*  led_putnum('e'); * for debugging purposes only */
59}
Note: See TracBrowser for help on using the repository browser.