2.3.3-74
[glibc.git] / sysdeps / standalone / m68k / m68020 / mvme136 / brdinit.c
blob95b81c1e1b389e87e33bdfdddfe9f29ee0e28ca9
1 /* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
4 On-Line Applications Research Corporation.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA. */
21 #include <standalone.h>
22 #include "m68020.h"
24 /* _Board_Initialize()
26 This routine initializes the Motorola MVME135/MVME136. */
28 void
29 _Board_Initialize ()
31 mc68020_isr *monitors_vector_table;
32 int index;
34 monitors_vector_table = (mc68020_isr *)0; /* 135Bug Vectors are at 0 */
35 set_vbr( monitors_vector_table );
37 for ( index=2 ; index<=255 ; index++ )
38 M68Kvec[ index ] = monitors_vector_table[ 32 ];
40 M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */
41 M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */
42 M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */
43 M68Kvec[ 47 ] = monitors_vector_table[ 47 ]; /* system call vector */
45 set_vbr( &M68Kvec );
47 (*(unsigned char *)0xfffb0067) = 0x7f; /* make VME access round-robin */
49 enable_caching ();