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 | * Modifications of respective RTEMS file: COPYRIGHT (c) 1994. |
---|
14 | * EISCAT Scientific Association. M.Savitski |
---|
15 | * |
---|
16 | * This material is a part of the MVME162 Board Support Package |
---|
17 | * for the RTEMS executive. Its licensing policies are those of the |
---|
18 | * RTEMS above. |
---|
19 | */ |
---|
20 | |
---|
21 | #include <bsp.h> |
---|
22 | #include <bsp/bootcard.h> |
---|
23 | #include <page_table.h> |
---|
24 | |
---|
25 | /* |
---|
26 | * bsp_start |
---|
27 | * |
---|
28 | * This routine does the bulk of the system initialization. |
---|
29 | */ |
---|
30 | void bsp_start( void ) |
---|
31 | { |
---|
32 | rtems_isr_entry *monitors_vector_table; |
---|
33 | int index; |
---|
34 | |
---|
35 | monitors_vector_table = (rtems_isr_entry *)MOT_162BUG_VEC_ADDRESS; |
---|
36 | m68k_set_vbr( monitors_vector_table ); |
---|
37 | |
---|
38 | for ( index=2 ; index<=255 ; index++ ) |
---|
39 | M68Kvec[ index ] = monitors_vector_table[ 32 ]; |
---|
40 | |
---|
41 | M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */ |
---|
42 | M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */ |
---|
43 | M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */ |
---|
44 | M68Kvec[ 47 ] = monitors_vector_table[ 47 ]; /* system call vector */ |
---|
45 | |
---|
46 | m68k_set_vbr( &M68Kvec ); |
---|
47 | |
---|
48 | /* |
---|
49 | * You may wish to make the VME arbitration round-robin here, currently |
---|
50 | * we leave it as it is. |
---|
51 | */ |
---|
52 | |
---|
53 | /* set the Interrupt Base Vectors */ |
---|
54 | |
---|
55 | lcsr->vector_base = (VBR0 << 28) | (VBR1 << 24); |
---|
56 | |
---|
57 | page_table_init(); |
---|
58 | } |
---|