4.104.115
Last change
on this file since 2c5862d1 was
2c5862d1,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/08 at 19:03:34
|
2008-09-16 Joel Sherrill <joel.sherrill@…>
- Makefile.am, clock/ckinit.c, startup/bspstart.c, startup/linkcmds:
Add use of bsp_get_work_area() in its own file and rely on BSP
Framework to perform more initialization. Remove unnecessary includes
of rtems/libio.h and rtems/libcsupport.h.
|
-
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.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 | m68k_isr_entry *monitors_vector_table; |
---|
28 | int index; |
---|
29 | |
---|
30 | monitors_vector_table = (m68k_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.