Upload Tizen:Base source
[external/eglibc.git] / ports / sysdeps / standalone / m68k / m68020 / mvme136 / brdinit.c
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.
5
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.
10
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.
15
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.  */
20
21 #include <standalone.h>
22 #include "m68020.h"
23
24 /*  _Board_Initialize()
25
26 This routine initializes the Motorola MVME135/MVME136.  */
27
28 void
29 _Board_Initialize ()
30 {
31   mc68020_isr *monitors_vector_table;
32   int          index;
33
34   monitors_vector_table = (mc68020_isr *)0;   /* 135Bug Vectors are at 0 */
35   set_vbr( monitors_vector_table );
36
37   for ( index=2 ; index<=255 ; index++ )
38     M68Kvec[ index ] = monitors_vector_table[ 32 ];
39
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 */
44
45   set_vbr( &M68Kvec );
46
47   (*(unsigned char *)0xfffb0067) = 0x7f; /* make VME access round-robin */
48
49   enable_caching ();
50
51 }