4.115
Last change
on this file since 3c688ade was
3c688ade,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/07/14 at 22:30:18
|
m68k/mvme147/startup/bspstart.c: Add include of <bsp/bootcard.h> to fix warning and clean up
|
-
Property mode set to
100644
|
File size:
1.3 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 | * MVME147 port for TNI - Telecom Bretagne |
---|
14 | * by Dominique LE CAMPION (Dominique.LECAMPION@enst-bretagne.fr) |
---|
15 | * May 1996 |
---|
16 | */ |
---|
17 | |
---|
18 | #include <bsp.h> |
---|
19 | #include <bsp/bootcard.h> |
---|
20 | |
---|
21 | void bsp_start( void ) |
---|
22 | { |
---|
23 | rtems_isr_entry *monitors_vector_table; |
---|
24 | int index; |
---|
25 | |
---|
26 | monitors_vector_table = (rtems_isr_entry *)0; /* 135Bug Vectors are at 0 */ |
---|
27 | m68k_set_vbr( monitors_vector_table ); |
---|
28 | |
---|
29 | for ( index=2 ; index<=255 ; index++ ) |
---|
30 | M68Kvec[ index ] = monitors_vector_table[ 32 ]; |
---|
31 | |
---|
32 | M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */ |
---|
33 | M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */ |
---|
34 | M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */ |
---|
35 | M68Kvec[ 47 ] = monitors_vector_table[ 47 ]; /* system call vector */ |
---|
36 | |
---|
37 | m68k_set_vbr( &M68Kvec ); |
---|
38 | |
---|
39 | pcc->int_base_vector = PCC_BASE_VECTOR; /* Set the PCC int vectors base */ |
---|
40 | |
---|
41 | (*(uint8_t*)0xfffe2001) = 0x08; /* make VME access round-robin */ |
---|
42 | |
---|
43 | rtems_cache_enable_instruction(); |
---|
44 | rtems_cache_enable_data(); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.