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