Back to index

glibc  2.9
brdinit.c
Go to the documentation of this file.
00001 /* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003    Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
00004      On-Line Applications Research Corporation.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 #include <standalone.h>
00022 #include "m68020.h"
00023 
00024 /*  _Board_Initialize()
00025 
00026 This routine initializes the Motorola MVME135/MVME136.  */
00027 
00028 void
00029 _Board_Initialize ()
00030 {
00031   mc68020_isr *monitors_vector_table;
00032   int          index;
00033 
00034   monitors_vector_table = (mc68020_isr *)0;   /* 135Bug Vectors are at 0 */
00035   set_vbr( monitors_vector_table );
00036 
00037   for ( index=2 ; index<=255 ; index++ )
00038     M68Kvec[ index ] = monitors_vector_table[ 32 ];
00039 
00040   M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
00041   M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
00042   M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
00043   M68Kvec[ 47 ] = monitors_vector_table[ 47 ];   /* system call vector */
00044 
00045   set_vbr( &M68Kvec );
00046 
00047   (*(unsigned char *)0xfffb0067) = 0x7f; /* make VME access round-robin */
00048 
00049   enable_caching ();
00050 
00051 }