summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mrm332
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-20 10:19:28 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-20 13:08:36 +0200
commitfbcd7c8fa65eb695e96a62ea1c1ac7a024fa9dfc (patch)
treea17e285cf22cd49cd42e8b3ad562febc3987d566 /c/src/lib/libbsp/m68k/mrm332
parentbsps: Move console drivers to bsps (diff)
downloadrtems-fbcd7c8fa65eb695e96a62ea1c1ac7a024fa9dfc.tar.bz2
bsps: Move start files to bsps
This patch is a part of the BSP source reorganization. Update #3285.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mrm332')
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/Makefile.am2
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/start/start.S71
2 files changed, 1 insertions, 72 deletions
diff --git a/c/src/lib/libbsp/m68k/mrm332/Makefile.am b/c/src/lib/libbsp/m68k/mrm332/Makefile.am
index 4677565797..11d6ea953c 100644
--- a/c/src/lib/libbsp/m68k/mrm332/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mrm332/Makefile.am
@@ -7,7 +7,7 @@ dist_project_lib_DATA = startup/bsp_specs
-start.$(OBJEXT): start/start.S
+start.$(OBJEXT): ../../../../../../bsps/m68k/mrm332/start/start.S
$(CPPASCOMPILE) -o $@ -c $<
project_lib_DATA = start.$(OBJEXT)
diff --git a/c/src/lib/libbsp/m68k/mrm332/start/start.S b/c/src/lib/libbsp/m68k/mrm332/start/start.S
deleted file mode 100644
index 5e2bbebc8e..0000000000
--- a/c/src/lib/libbsp/m68k/mrm332/start/start.S
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * @file
- *
- * MRM332 Assembly Start Up Code
- */
-
-/*
- * COPYRIGHT (c) 2000.
- * Matt Cross <profesor@gweep.net>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- *
- */
-
-#include "mrm332.h"
-#include <rtems/asm.h>
-#include <rtems/m68k/sim.h>
-
-BEGIN_CODE
-
- /* Put the header necessary for the modified CPU32bug to automatically
- start up rtems: */
-#if 1
-.long 0xbeefbeef ;
-#endif
-.long 0 ;
-.long start ;
-
-.global start
- start:
-
- oriw #0x0700,sr /* Mask off interupts */
-
- // Set VBR to CPU32Bug vector table address
- movel #0x0,d0 /* Use the initial vectors until we get going */
- movecl d0,vbr
-
- movel #end, d0 /* Next 3 instructions set stack pointer */
- addl #_StackSize,d0 /* sp = end + _StackSize from linker script */
- movel d0,sp
- movel d0,a6
-
- /* include in ram_init.S */
- /*
- * Initalize the SIM module.
- * The stack pointer is not usable until the RAM chip select lines
- * are configured. The following code must remain inline.
- */
-
- /* Module Configuration Register */
- /* see section(s) 3.1.3-3.1.6 of the SIM Reference Manual */
- /* SIMCR etc and SAM macro all defined in sim.h found at */
- /* /cpukit/score/cpu/m68k/rtems/m68k/sim.h */
- /* The code below does the following: */
- /* - Sets Freeze Software Enable */
- /* - Turns off Show Cycle Enable */
- /* - Sets the location of SIM module mapping */
- /* - Sets the SIM Interrupt Arbitration Field */
- lea SIMCR, a0
- movew #FRZSW,d0
- oriw #SAM(0,8,SHEN),d0
- oriw #(MM*SIM_MM),d0
- oriw #SAM(SIM_IARB,0,IARB),d0
- movew d0, a0@
-
- jsr start_c /* Jump to the C startup code */
-
-END_CODE
-