summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/dmv152/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-11 14:01:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-11 14:01:27 +0000
commit9744fc97ba9ab9e36e3058a19202ceef64fb6787 (patch)
tree581e2ea7196b767c4f3521f352af2a635d35e234 /c/src/lib/libbsp/m68k/dmv152/startup
parent2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-9744fc97ba9ab9e36e3058a19202ceef64fb6787.tar.bz2
2007-05-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* dmv152/.cvsignore, dmv152/ChangeLog, dmv152/Makefile.am, dmv152/bsp_specs, dmv152/configure.ac, dmv152/preinstall.am, dmv152/times, dmv152/clock/ckinit.c, dmv152/console/console.c, dmv152/include/.cvsignore, dmv152/include/bsp.h, dmv152/include/coverhd.h, dmv152/include/tm27.h, dmv152/spurious/spinit.c, dmv152/startup/bspclean.c, dmv152/startup/bspstart.c, dmv152/startup/linkcmds, dmv152/startup/vmeintr.c, dmv152/timer/timer.c, dmv152/timer/timerisr.S: Removed.
Diffstat (limited to 'c/src/lib/libbsp/m68k/dmv152/startup')
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/startup/bspclean.c20
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c102
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/startup/linkcmds181
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/startup/vmeintr.c59
4 files changed, 0 insertions, 362 deletions
diff --git a/c/src/lib/libbsp/m68k/dmv152/startup/bspclean.c b/c/src/lib/libbsp/m68k/dmv152/startup/bspclean.c
deleted file mode 100644
index 2d947236ed..0000000000
--- a/c/src/lib/libbsp/m68k/dmv152/startup/bspclean.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * This routine performs final cleanup at exit time.
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <bsp.h>
-
-void bsp_cleanup( void )
-{
-
- VME_interrupt_Disable( 0xff );
-}
diff --git a/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c b/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
deleted file mode 100644
index 001d146c86..0000000000
--- a/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * This routine starts the application. It includes application,
- * board, and monitor specific initialization and configuration.
- * The generic CPU dependent initialization has been performed
- * before this routine is invoked.
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <string.h>
-
-#include <bsp.h>
-#include <rtems/libio.h>
-#include <rtems/libcsupport.h>
-
-/*
- * The original table from the application and our copy of it with
- * some changes.
- */
-
-extern rtems_configuration_table Configuration;
-rtems_configuration_table BSP_Configuration;
-
-rtems_cpu_table Cpu_table;
-
-char *rtems_progname;
-
-/*
- * Use the shared implementations of the following routines
- */
-
-void bsp_postdriver_hook(void);
-void bsp_libc_init( void *, uint32_t, int );
-void bsp_pretasking_hook(void); /* m68k version */
-
-/*
- * bsp_start
- *
- * This routine does the bulk of the system initialization.
- */
-
-void bsp_start( void )
-{
- m68k_isr_entry *monitors_vector_table;
- int index;
- void *vbr;
- extern void *_WorkspaceBase;
- extern void *_RamSize;
- extern unsigned long _M68k_Ramsize;
-
- _M68k_Ramsize = (unsigned long)&_RamSize; /* RAM size set in linker script */
-
- monitors_vector_table = (m68k_isr_entry *)0; /* Monitor Vectors are at 0 */
- m68k_set_vbr( monitors_vector_table );
-
- for ( index=2 ; index<=255 ; index++ )
- M68Kvec[ index ] = monitors_vector_table[ 32 ];
-
- M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */
- M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */
- M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */
-
- /*
- * Uncommenting this seems to confuse/break the monitor on this board.
- * It probably assumes the vector table is at 0.
- */
-
- /* m68k_set_vbr( &M68Kvec ); */
-
- /*
- * Adjust the VMEbus mode to round-robin.
- */
-
- /*
- * This is only apparent with the shared memory driver which has not
- * yet been supported on this target.
- */
-
- rtems_cache_enable_instruction();
-
- /*
- * we only use a hook to get the C library initialized.
- */
-
- Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
- Cpu_table.postdriver_hook = bsp_postdriver_hook;
- Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
-
- m68k_get_vbr( vbr );
- Cpu_table.interrupt_vector_table = vbr;
-
- BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
-
- /* Clock_exit is done as an atexit() function */
-}
diff --git a/c/src/lib/libbsp/m68k/dmv152/startup/linkcmds b/c/src/lib/libbsp/m68k/dmv152/startup/linkcmds
deleted file mode 100644
index 0e8b26b973..0000000000
--- a/c/src/lib/libbsp/m68k/dmv152/startup/linkcmds
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * This file contains directives for the GNU linker which are specific
- * to the DY-4 DMV152/SVME153 boards.
- *
- * COPYRIGHT (c) 1989-2007.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-/*
- * Declare some sizes.
- */
-_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
-_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
-_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
-
-MEMORY
-{
- ram : org = 0x0, l = 1M
-}
-
-SECTIONS
-{
- ram : {
- . = 0x12800;
- } >ram
-
- /*
- * Text, data and bss segments
- */
- .text : {
- *(.text*)
-
- /*
- * C++ constructors/destructors
- */
- *(.gnu.linkonce.t.*)
-
- /*
- * Initialization and finalization code.
- *
- * Various files can provide initialization and finalization
- * functions. crtbegin.o and crtend.o are two instances. The
- * body of these functions are in .init and .fini sections. We
- * accumulate the bodies here, and prepend function prologues
- * from crti.o and function epilogues from crtn.o. crti.o must
- * be linked first; crtn.o must be linked last. Because these
- * are wildcards, it doesn't matter if the user does not
- * actually link against crti.o and crtn.o; the linker won't
- * look for a file to match a wildcard. The wildcard also
- * means that it doesn't matter which directory crti.o and
- * crtn.o are in.
- */
- PROVIDE (_init = .);
- *crti.o(.init)
- *(.init)
- *crtn.o(.init)
- PROVIDE (_fini = .);
- *crti.o(.fini)
- *(.fini)
- *crtn.o(.fini)
-
- /*
- * Special FreeBSD sysctl sections.
- */
- . = ALIGN (16);
- __start_set_sysctl_set = .;
- *(set_sysctl_*);
- __stop_set_sysctl_set = ABSOLUTE(.);
- *(set_domain_*);
- *(set_pseudo_*);
-
- /*
- * C++ constructors/destructors
- *
- * gcc uses crtbegin.o to find the start of the constructors
- * and destructors so we make sure it is first. Because this
- * is a wildcard, it doesn't matter if the user does not
- * actually link against crtbegin.o; the linker won't look for
- * a file to match a wildcard. The wildcard also means that
- * it doesn't matter which directory crtbegin.o is in. The
- * constructor and destructor list are terminated in
- * crtend.o. The same comments apply to it.
- */
- . = ALIGN (16);
- *crtbegin.o(.ctors)
- *(.ctors)
- *crtend.o(.ctors)
- *crtbegin.o(.dtors)
- *(.dtors)
- *crtend.o(.dtors)
-
- /*
- * Exception frame info
- */
- . = ALIGN (16);
- *(.eh_frame)
-
- /*
- * Read-only data
- */
- . = ALIGN (16);
- _rodata_start = . ;
- *(.rodata*)
- *(.gnu.linkonce.r*)
-
- . = ALIGN (16);
- PROVIDE (etext = .);
- } >ram
- .data : {
- copy_start = .;
- *(.data*)
- *(.gnu.linkonce.d*)
- *(.gcc_except_table)
- *(.jcr)
- . = ALIGN (16);
- PROVIDE (_edata = .);
- copy_end = .;
- } >ram
- .bss : {
- _clear_start = .;
- *(.dynbss)
- *(.bss* .gnu.linkonce.b.*)
- *(COMMON)
- . = ALIGN (16);
- PROVIDE (end = .);
-
- . += _StackSize;
- . = ALIGN (16);
- _stack_init = .;
- _clear_end = .;
-
- _WorkspaceBase = .;
- } >ram
-
- /* Stabs debugging sections. */
- .stab 0 : { *(.stab) }
- .stabstr 0 : { *(.stabstr) }
- .stab.excl 0 : { *(.stab.excl) }
- .stab.exclstr 0 : { *(.stab.exclstr) }
- .stab.index 0 : { *(.stab.index) }
- .stab.indexstr 0 : { *(.stab.indexstr) }
- .comment 0 : { *(.comment) }
-
- /* DWARF debug sections.
- Symbols in the DWARF debugging sections are relative to the beginning
- of the section so we begin them at 0. */
- /* DWARF 1 */
- .debug 0 : { *(.debug) }
- .line 0 : { *(.line) }
-
- /* GNU DWARF 1 extensions */
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
-
- /* DWARF 1.1 and DWARF 2 */
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
-
- /* DWARF 2 */
- .debug_info 0 : { *(.debug_info) }
- .debug_abbrev 0 : { *(.debug_abbrev) }
- .debug_line 0 : { *(.debug_line) }
- .debug_frame 0 : { *(.debug_frame) }
- .debug_str 0 : { *(.debug_str) }
- .debug_loc 0 : { *(.debug_loc) }
- .debug_macinfo 0 : { *(.debug_macinfo) }
-
- /* SGI/MIPS DWARF 2 extensions */
- .debug_weaknames 0 : { *(.debug_weaknames) }
- .debug_funcnames 0 : { *(.debug_funcnames) }
- .debug_typenames 0 : { *(.debug_typenames) }
- .debug_varnames 0 : { *(.debug_varnames) }
- /* These must appear regardless of . */
-}
diff --git a/c/src/lib/libbsp/m68k/dmv152/startup/vmeintr.c b/c/src/lib/libbsp/m68k/dmv152/startup/vmeintr.c
deleted file mode 100644
index 05b311ff30..0000000000
--- a/c/src/lib/libbsp/m68k/dmv152/startup/vmeintr.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* vmeintr.c
- *
- * VMEbus support routines for the DMV152.
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include <bsp.h>
-#include <rtems/vmeintr.h>
-
-/*PAGE
- *
- * VME_interrupt_Disable
- *
- */
-
-void VME_interrupt_Disable (
- VME_interrupt_Mask mask /* IN */
-)
-{
- volatile uint8_t *VME_interrupt_enable;
- uint8_t value;
-
- VME_interrupt_enable = ACC_VIE;
- value = *VME_interrupt_enable;
-
- value &= ~mask; /* turn off interrupts for all levels in mask */
-
- *VME_interrupt_enable = value;
-}
-
-/*PAGE
- *
- * VME_interrupt_Enable
- *
- */
-
-void VME_interrupt_Enable (
- VME_interrupt_Mask mask /* IN */
-)
-{
- volatile uint8_t *VME_interrupt_enable;
- uint8_t value;
-
- VME_interrupt_enable = ACC_VIE;
- value = *VME_interrupt_enable;
-
- value |= mask; /* turn on interrupts for all levels in mask */
-
- *VME_interrupt_enable = value;
-}