<div dir="ltr">Hi<div><br></div><div>FWIW when you delete the last BSP in an architecture the <a href="http://configure.ac">configure.ac</a> in </div><div>libbsp/<ARCHITECTURE> needs to be looked at. It still referenced m32rsim.</div><div><br></div><div>It could also happen if the BSP is not the last one in the architecture if </div><div>we were unlucky.</div><div><br></div><div>I saw someone complain about a bootstrap error on irc overnight and this</div><div>could easily have been it. Although there are many other things that can </div><div>go wrong.</div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 2:29 AM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebh@rtems.org" target="_blank">sebh@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Module: rtems<br>
Branch: master<br>
Commit: f7c47a6880aea022b12f7f553df070d6f7ec0702<br>
Changeset: <a href="http://git.rtems.org/rtems/commit/?id=f7c47a6880aea022b12f7f553df070d6f7ec0702" rel="noreferrer" target="_blank">http://git.rtems.org/rtems/commit/?id=f7c47a6880aea022b12f7f553df070d6f7ec0702</a><br>
<br>
Author: Aun-Ali Zaidi <<a href="mailto:admin@kodeit.net">admin@kodeit.net</a>><br>
Date: Wed Dec 9 20:21:03 2015 -0600<br>
<br>
m32r/m32rsim: Remove<br>
<br>
updates #2447.<br>
<br>
---<br>
<br>
c/src/lib/libbsp/m32r/acinclude.m4 | 2 -<br>
c/src/lib/libbsp/m32r/m32rsim/Makefile.am | 48 ----<br>
c/src/lib/libbsp/m32r/m32rsim/bsp_specs | 13 --<br>
c/src/lib/libbsp/m32r/m32rsim/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 20 --<br>
c/src/lib/libbsp/m32r/m32rsim/console/console-io.c | 60 -----<br>
c/src/lib/libbsp/m32r/m32rsim/console/syscalls.S | 41 ----<br>
c/src/lib/libbsp/m32r/m32rsim/console/trap0.S | 16 --<br>
c/src/lib/libbsp/m32r/m32rsim/doxygen.h | 15 --<br>
c/src/lib/libbsp/m32r/m32rsim/include/bsp.h | 69 ------<br>
c/src/lib/libbsp/m32r/m32rsim/include/tm27.h | 42 ----<br>
.../m32rsim/make/custom/m32rsim-testsuite.tcfg | 5 -<br>
.../libbsp/m32r/m32rsim/make/custom/m32rsim.cfg | 16 --<br>
c/src/lib/libbsp/m32r/m32rsim/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a> | 71 ------<br>
c/src/lib/libbsp/m32r/m32rsim/start/start.S | 57 -----<br>
c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c | 17 --<br>
c/src/lib/libbsp/m32r/m32rsim/startup/linkcmds | 253 ---------------------<br>
16 files changed, 745 deletions(-)<br>
<br>
diff --git a/c/src/lib/libbsp/m32r/acinclude.m4 b/c/src/lib/libbsp/m32r/acinclude.m4<br>
index 1d9c699..296a6f7 100644<br>
--- a/c/src/lib/libbsp/m32r/acinclude.m4<br>
+++ b/c/src/lib/libbsp/m32r/acinclude.m4<br>
@@ -2,8 +2,6 @@<br>
AC_DEFUN([RTEMS_CHECK_BSPDIR],<br>
[<br>
case "$1" in<br>
- m32rsim )<br>
- AC_CONFIG_SUBDIRS([m32rsim]);;<br>
*)<br>
AC_MSG_ERROR([Invalid BSP]);;<br>
esac<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/Makefile.am b/c/src/lib/libbsp/m32r/m32rsim/Makefile.am<br>
deleted file mode 100644<br>
index 12cd67d..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/Makefile.am<br>
+++ /dev/null<br>
@@ -1,48 +0,0 @@<br>
-ACLOCAL_AMFLAGS = -I ../../../../aclocal<br>
-<br>
-include $(top_srcdir)/../../../../automake/<a href="http://compile.am" rel="noreferrer" target="_blank">compile.am</a><br>
-include $(top_srcdir)/../../<a href="http://bsp.am" rel="noreferrer" target="_blank">bsp.am</a><br>
-<br>
-include_bspdir = $(includedir)/bsp<br>
-<br>
-dist_project_lib_DATA = bsp_specs<br>
-<br>
-include_HEADERS = include/bsp.h<br>
-include_HEADERS += include/tm27.h<br>
-<br>
-nodist_include_HEADERS = include/bspopts.h<br>
-nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h<br>
-nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h<br>
-DISTCLEANFILES = include/bspopts.h<br>
-noinst_PROGRAMS =<br>
-<br>
-nodist_include_HEADERS += ../../shared/include/coverhd.h<br>
-<br>
-EXTRA_DIST = start/start.S<br>
-start.$(OBJEXT): start/start.S<br>
- $(CPPASCOMPILE) -o $@ -c $<<br>
-project_lib_DATA = start.$(OBJEXT)<br>
-<br>
-dist_project_lib_DATA += startup/linkcmds<br>
-<br>
-startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \<br>
- ../../shared/bsppredriverhook.c \<br>
- ../../shared/bspgetworkarea.c ../../shared/bsppost.c \<br>
- ../../shared/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \<br>
- ../../shared/gnatinstallhandler.c startup/bspreset.c<br>
-clock_SOURCES = ../../shared/clock_driver_simidle.c<br>
-console_SOURCES = ../../shared/console-polled.c console/console-io.c \<br>
- console/trap0.S<br>
-timer_SOURCES = ../../shared/timerstub.c<br>
-<br>
-noinst_LIBRARIES = libbsp.a<br>
-libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(console_SOURCES) \<br>
- $(timer_SOURCES)<br>
-<br>
-# Cache<br>
-libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c<br>
-libbsp_a_SOURCES += ../../shared/include/cache_.h<br>
-libbsp_a_CPPFLAGS = -I$(srcdir)/../../shared/include<br>
-<br>
-include $(srcdir)/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a><br>
-include $(top_srcdir)/../../../../automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/bsp_specs b/c/src/lib/libbsp/m32r/m32rsim/bsp_specs<br>
deleted file mode 100644<br>
index 3093175..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/bsp_specs<br>
+++ /dev/null<br>
@@ -1,13 +0,0 @@<br>
-%rename endfile old_endfile<br>
-%rename startfile old_startfile<br>
-%rename link old_link<br>
-<br>
-*startfile:<br>
-%{!qrtems: %(old_startfile)} \<br>
-%{!nostdlib: %{qrtems: start.o%s crtinit.o%s crtbegin.o%s -e _start}}<br>
-<br>
-*link:<br>
-%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}<br>
-<br>
-*endfile:<br>
-%{!qrtems: %(old_endfiles)} %{qrtems: crtend.o%s crtfini.o%s }<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/c/src/lib/libbsp/m32r/m32rsim/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
deleted file mode 100644<br>
index a519ac1..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
+++ /dev/null<br>
@@ -1,20 +0,0 @@<br>
-## Process this file with autoconf to produce a configure script.<br>
-<br>
-AC_PREREQ([2.69])<br>
-AC_INIT([rtems-c-src-lib-libbsp-h8300-h8sim],[_RTEMS_VERSION],[<a href="https://devel.rtems.org/newticket" rel="noreferrer" target="_blank">https://devel.rtems.org/newticket</a>])<br>
-AC_CONFIG_SRCDIR([bsp_specs])<br>
-RTEMS_TOP(../../../../../..)<br>
-<br>
-RTEMS_CANONICAL_TARGET_CPU<br>
-AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])<br>
-RTEMS_BSP_CONFIGURE<br>
-<br>
-RTEMS_PROG_CC_FOR_TARGET<br>
-RTEMS_CANONICALIZE_TOOLS<br>
-RTEMS_PROG_CCAS<br>
-<br>
-RTEMS_BSP_CLEANUP_OPTIONS(0, 1)<br>
-<br>
-# Explicitly list all Makefiles here<br>
-AC_CONFIG_FILES([Makefile])<br>
-AC_OUTPUT<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c b/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c<br>
deleted file mode 100644<br>
index 4c8c945..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c<br>
+++ /dev/null<br>
@@ -1,60 +0,0 @@<br>
-/*<br>
- * COPYRIGHT (c) 1989-2011.<br>
- * On-Line Applications Research Corporation (OAR).<br>
- *<br>
- * The license and distribution terms for this file may be<br>
- * found in the file LICENSE in this distribution or at<br>
- * <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>.<br>
- */<br>
-<br>
-#include <bsp.h><br>
-#include <bsp/console-polled.h><br>
-#include <rtems/libio.h><br>
-#include <stdlib.h><br>
-#include <assert.h><br>
-#include <reent.h><br>
-<br>
-/*<br>
- * console_initialize_hardware<br>
- *<br>
- * This routine initializes the console hardware.<br>
- *<br>
- */<br>
-<br>
-void console_initialize_hardware(void)<br>
-{<br>
- return;<br>
-}<br>
-<br>
-/*<br>
- * console_outbyte_polled<br>
- *<br>
- * This routine transmits a character using polling.<br>
- */<br>
-void console_outbyte_polled(<br>
- int port,<br>
- char ch<br>
-)<br>
-{<br>
- TRAP0(SYS_write, 1, &ch, 1);<br>
-}<br>
-<br>
-/*<br>
- * console_inbyte_nonblocking<br>
- *<br>
- * This routine polls for a character.<br>
- */<br>
-<br>
-int console_inbyte_nonblocking(<br>
- int port<br>
-)<br>
-{<br>
- return -1;<br>
-}<br>
-<br>
-#include <rtems/bspIo.h><br>
-<br>
-static void console_output_char(char c) { console_outbyte_polled( 0, c ); }<br>
-<br>
-BSP_output_char_function_type BSP_output_char = console_output_char;<br>
-BSP_polling_getchar_function_type BSP_poll_char = NULL;<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/console/syscalls.S b/c/src/lib/libbsp/m32r/m32rsim/console/syscalls.S<br>
deleted file mode 100644<br>
index caee247..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/console/syscalls.S<br>
+++ /dev/null<br>
@@ -1,41 +0,0 @@<br>
-/*<br>
- * System call support for simulator in gdb.<br>
- * Adapted from newlib 1.16.0.<br>
- */<br>
-<br>
-#define SYS_exit 1<br>
-#define SYS_open 2<br>
-#define SYS_close 3<br>
-#define SYS_read 4<br>
-#define SYS_write 5<br>
-#define SYS_lseek 6<br>
-#define SYS_unlink 7<br>
-#define SYS_getpid 8<br>
-#define SYS_kill 9<br>
-#define SYS_fstat 10<br>
-<br>
-#define POUND #<br>
-#define SYSCALL(N) mov.b POUND N,0x400<br>
-<br>
-#define S(n) _sys_##n: .global _sys_##n | SYSCALL(SYS_##n) | rts<br>
-<br>
-S(write)<br>
-S(exit)<br>
-<br>
- .global _abort<br>
-_abort:<br>
- /* This is for debuggers. The simulator stops here too. */<br>
- brk<br>
-<br>
- /* Else, fall back on the simulator's "kill me" option. */<br>
-#if defined(__r8c_cpu__) || defined(__m16c_cpu__)<br>
- mov.w #42,r1<br>
-#else<br>
- mov.w #42,r0<br>
-#endif<br>
-<br>
- SYSCALL(SYS_kill)<br>
-<br>
- /* Else, exit. */<br>
- jmp.a __exit<br>
-<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/console/trap0.S b/c/src/lib/libbsp/m32r/m32rsim/console/trap0.S<br>
deleted file mode 100644<br>
index 04efa13..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/console/trap0.S<br>
+++ /dev/null<br>
@@ -1,16 +0,0 @@<br>
-; Trap 0 handler (syscall interface).<br>
-;<br>
-; The trap handler returns the result in r0 and the error code (errno value)<br>
-; in r2. r1 is reserved in case an 8 byte quantity ever needs to be<br>
-; returned in registers.<br>
-<br>
- .text<br>
- .global __trap0<br>
-__trap0:<br>
- trap #0 ; trap 0 returns result in r0, error code in r2<br>
- cmpui r2,#1 ; is error code zero?<br>
- bc .Lret ; yes, skip setting errno<br>
- ld r4,@(sp) ; no, set errno<br>
- st r2,@r4<br>
-.Lret:<br>
- jmp lr ; return to caller<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/doxygen.h b/c/src/lib/libbsp/m32r/m32rsim/doxygen.h<br>
deleted file mode 100644<br>
index c4dc5e8..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/doxygen.h<br>
+++ /dev/null<br>
@@ -1,15 +0,0 @@<br>
-/**<br>
- * @defgroup bsp_m32r M32R<br>
- *<br>
- * @ingroup bsp_kit<br>
- *<br>
- * @brief M32R Board Support Packages<br>
- */<br>
-<br>
-/**<br>
- * @defgroup m32r_m32rsim M32R M32RSIM Modules<br>
- *<br>
- * @ingroup bsp_m32r<br>
- *<br>
- * @brief M32R M32RSIM Modules<br>
- */<br>
\ No newline at end of file<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h b/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h<br>
deleted file mode 100644<br>
index 1a30ce6..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h<br>
+++ /dev/null<br>
@@ -1,69 +0,0 @@<br>
-/**<br>
- * @file<br>
- *<br>
- * @ingroup m32r_bsp<br>
- *<br>
- * @brief m32r definitions in gdb<br>
- */<br>
-<br>
-/* bsp.h<br>
- *<br>
- * This include file contains some definitions specific to the<br>
- * h8 simulator in gdb.<br>
- *<br>
- * COPYRIGHT (c) 1989-1999.<br>
- * On-Line Applications Research Corporation (OAR).<br>
- *<br>
- * The license and distribution terms for this file may be<br>
- * found in the file LICENSE in this distribution or at<br>
- * <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>.<br>
- */<br>
-<br>
-#ifndef LIBBSP_M32R_M32RSIM_BSP_H<br>
-#define LIBBSP_M32R_M32RSIM_BSP_H<br>
-<br>
-#include <bspopts.h><br>
-#include <bsp/default-initial-extension.h><br>
-<br>
-#include <rtems.h><br>
-#include <rtems/iosupp.h><br>
-#include <rtems/console.h><br>
-#include <rtems/clockdrv.h><br>
-<br>
-#ifdef __cplusplus<br>
-extern "C" {<br>
-#endif<br>
-<br>
-/**<br>
- * @defgroup m32r_bsp Clock Tick Support<br>
- *<br>
- * @ingroup m32r_m32rsim<br>
- *<br>
- * @brief Clock Tick Support Package<br>
- */<br>
-<br>
-Thread clock_driver_sim_idle_body(uintptr_t);<br>
-#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body<br>
-<br>
-/* Trap support interface from Newlib 1.16.0 */<br>
-#define SYS_exit 1<br>
-#define SYS_open 2<br>
-#define SYS_close 3<br>
-#define SYS_read 4<br>
-#define SYS_write 5<br>
-#define SYS_lseek 6<br>
-#define SYS_unlink 7<br>
-#define SYS_getpid 8<br>
-#define SYS_kill 9<br>
-#define SYS_fstat 10<br>
-<br>
-int __trap0 (int function, int p1, int p2, int p3, struct _reent *r);<br>
-<br>
-#define TRAP0(f, p1, p2, p3) \<br>
- __trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT)<br>
-<br>
-#ifdef __cplusplus<br>
-}<br>
-#endif<br>
-<br>
-#endif<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/include/tm27.h b/c/src/lib/libbsp/m32r/m32rsim/include/tm27.h<br>
deleted file mode 100644<br>
index a775386..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/include/tm27.h<br>
+++ /dev/null<br>
@@ -1,42 +0,0 @@<br>
-/**<br>
- * @file<br>
- *<br>
- * @ingroup m32r_tm27<br>
- *<br>
- * @brief Time Test 27<br>
- */<br>
-<br>
-/*<br>
- * tm27.h<br>
- *<br>
- * The license and distribution terms for this file may be<br>
- * found in the file LICENSE in this distribution or at<br>
- * <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>.<br>
- */<br>
-<br>
-#ifndef _RTEMS_TMTEST27<br>
-#error "This is an RTEMS internal file you must not include directly."<br>
-#endif<br>
-<br>
-#ifndef __tm27_h<br>
-#define __tm27_h<br>
-<br>
-/**<br>
- * @defgroup m32r_tm27 Time Test 27<br>
- *<br>
- * @ingroup m32r_m32rsim<br>
- *<br>
- * @brief Define the interrupt mechanism for Time Test 27<br>
- */<br>
-<br>
-#define MUST_WAIT_FOR_INTERRUPT 0<br>
-<br>
-#define Install_tm27_vector( handler ) /* set_vector( (handler), 6, 1 ) */<br>
-<br>
-#define Cause_tm27_intr() /* XXX */<br>
-<br>
-#define Clear_tm27_intr() /* XXX */<br>
-<br>
-#define Lower_tm27_intr() /* empty */<br>
-<br>
-#endif<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/make/custom/m32rsim-testsuite.tcfg b/c/src/lib/libbsp/m32r/m32rsim/make/custom/m32rsim-testsuite.tcfg<br>
deleted file mode 100644<br>
index f6837cc..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/make/custom/m32rsim-testsuite.tcfg<br>
+++ /dev/null<br>
@@ -1,5 +0,0 @@<br>
-#<br>
-# The GDB M32R Simulator does not have a tick interrupt.<br>
-#<br>
-<br>
-include: testdata/require-tick-isr.tcfg<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/make/custom/m32rsim.cfg b/c/src/lib/libbsp/m32r/m32rsim/make/custom/m32rsim.cfg<br>
deleted file mode 100644<br>
index 7fca821..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/make/custom/m32rsim.cfg<br>
+++ /dev/null<br>
@@ -1,16 +0,0 @@<br>
-#<br>
-# Config file for the M32C GDB Simulator<br>
-#<br>
-<br>
-include $(RTEMS_ROOT)/make/custom/default.cfg<br>
-<br>
-RTEMS_CPU=m32r<br>
-RTEMS_CPU_MODEL=m32r<br>
-<br>
-# This contains the compiler options necessary to select the CPU model<br>
-# and (hopefully) optimize for it.<br>
-CPU_CFLAGS =<br>
-<br>
-# optimize flag: typically -O2<br>
-# see GCC PR37665<br>
-CFLAGS_OPTIMIZE_V = -O2 -g<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a> b/c/src/lib/libbsp/m32r/m32rsim/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a><br>
deleted file mode 100644<br>
index 586785b..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a><br>
+++ /dev/null<br>
@@ -1,71 +0,0 @@<br>
-## Automatically generated by ampolish3 - Do not edit<br>
-<br>
-if AMPOLISH3<br>
-$(srcdir)/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a>: Makefile.am<br>
- $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/<a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a><br>
-endif<br>
-<br>
-PREINSTALL_DIRS =<br>
-DISTCLEANFILES += $(PREINSTALL_DIRS)<br>
-<br>
-all-am: $(PREINSTALL_FILES)<br>
-<br>
-PREINSTALL_FILES =<br>
-CLEANFILES = $(PREINSTALL_FILES)<br>
-<br>
-all-local: $(TMPINSTALL_FILES)<br>
-<br>
-TMPINSTALL_FILES =<br>
-CLEANFILES += $(TMPINSTALL_FILES)<br>
-<br>
-$(PROJECT_LIB)/$(dirstamp):<br>
- @$(MKDIR_P) $(PROJECT_LIB)<br>
- @: > $(PROJECT_LIB)/$(dirstamp)<br>
-PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)<br>
-<br>
-$(PROJECT_INCLUDE)/$(dirstamp):<br>
- @$(MKDIR_P) $(PROJECT_INCLUDE)<br>
- @: > $(PROJECT_INCLUDE)/$(dirstamp)<br>
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)<br>
-<br>
-$(PROJECT_INCLUDE)/bsp/$(dirstamp):<br>
- @$(MKDIR_P) $(PROJECT_INCLUDE)/bsp<br>
- @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)<br>
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)<br>
-<br>
-$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs<br>
-PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs<br>
-<br>
-$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h<br>
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h<br>
-<br>
-$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h<br>
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h<br>
-<br>
-$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h<br>
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h<br>
-<br>
-$(PROJECT_INCLUDE)/bsp/bootcard.h: ../../shared/include/bootcard.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bootcard.h<br>
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h<br>
-<br>
-$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h<br>
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h<br>
-<br>
-$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h<br>
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h<br>
-<br>
-$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)<br>
-TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)<br>
-<br>
-$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)<br>
- $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds<br>
-PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds<br>
-<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/start/start.S b/c/src/lib/libbsp/m32r/m32rsim/start/start.S<br>
deleted file mode 100644<br>
index 9b11389..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/start/start.S<br>
+++ /dev/null<br>
@@ -1,57 +0,0 @@<br>
-/*<br>
- * From Newlib 1.16.0<br>
- */<br>
-<br>
- .text<br>
- .balign 4<br>
- .global _start<br>
-_start:<br>
-<br>
- seth sp, #shigh(_stack)<br>
- add3 sp, sp, #low(_stack)<br>
- ldi fp, #0<br>
-<br>
-# Clear the BSS. Do it in two parts for efficiency: longwords first<br>
-# for most of it, then the remaining 0 to 3 bytes.<br>
-<br>
- seth r2, #shigh(__bss_start)<br>
- add3 r2, r2, #low(__bss_start); R2 = start of BSS<br>
- seth r3, #shigh(_end)<br>
- add3 r3, r3, #low(_end) ; R3 = end of BSS + 1<br>
-<br>
- sub r3, r2 ; R3 = BSS size in bytes<br>
- mv r4, r3<br>
- srli r4, #2 ; R4 = BSS size in longwords (rounded down)<br>
- ldi r1, #0 ; clear R1 for longword store<br>
- addi r2, #-4 ; account for pre-inc store<br>
- beqz r4, .Lendloop1 ; any more to go?<br>
-.Lloop1:<br>
- st r1, @+r2 ; yep, zero out another longword<br>
- addi r4, #-1 ; decrement count<br>
- bnez r4, .Lloop1 ; go do some more<br>
-.Lendloop1:<br>
- and3 r4, r3, #3 ; get no. of remaining BSS bytes to clear<br>
- addi r2, #4 ; account for pre-inc store<br>
- beqz r4, .Lendloop2 ; any more to go?<br>
-.Lloop2:<br>
- stb r1, @r2 ; yep, zero out another byte<br>
- addi r2, #1 ; bump address<br>
- addi r4, #-1 ; decrement count<br>
- bnez r4, .Lloop2 ; go do some more<br>
-.Lendloop2:<br>
-<br>
-# Run code in the .init section.<br>
-# This will queue the .fini section to be run with atexit.<br>
-<br>
- # bl __init<br>
-<br>
-# Call main, then exit.<br>
-<br>
- ldi r1, #0 ; r1 = argv<br>
- ldi r0, #0 ; r0 = argc<br>
- bl boot_card<br>
-<br>
-# If that fails just loop.<br>
-<br>
-.Lexit:<br>
- bra .Lexit<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c b/c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c<br>
deleted file mode 100644<br>
index 01e77a0..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c<br>
+++ /dev/null<br>
@@ -1,17 +0,0 @@<br>
-/*<br>
- * COPYRIGHT (c) 1989-2011.<br>
- * On-Line Applications Research Corporation (OAR).<br>
- *<br>
- * The license and distribution terms for this file may be<br>
- * found in the file LICENSE in this distribution or at<br>
- * <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/LICENSE</a>.<br>
- */<br>
-<br>
-#include <rtems.h><br>
-#include <bsp/bootcard.h><br>
-#include <bsp.h><br>
-<br>
-void bsp_reset( void )<br>
-{<br>
- TRAP0(SYS_exit, 0, 0, 0);<br>
-}<br>
diff --git a/c/src/lib/libbsp/m32r/m32rsim/startup/linkcmds b/c/src/lib/libbsp/m32r/m32rsim/startup/linkcmds<br>
deleted file mode 100644<br>
index e36a6a9..0000000<br>
--- a/c/src/lib/libbsp/m32r/m32rsim/startup/linkcmds<br>
+++ /dev/null<br>
@@ -1,253 +0,0 @@<br>
-/*<br>
- * Declare some sizes.<br>
- */<br>
-RamBase = DEFINED(RamBase) ? RamBase : 0x000000;<br>
-RamSize = DEFINED(RamSize) ? RamSize : 0x800000;<br>
-HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;<br>
-StackSize = DEFINED(StackSize) ? StackSize : 0x1000;<br>
-<br>
-<br>
-/* Default linker script, for normal executables */<br>
-OUTPUT_FORMAT("elf32-m32r", "elf32-m32r",<br>
- "elf32-m32r")<br>
-OUTPUT_ARCH(m32r)<br>
-ENTRY(_start)<br>
-SEARCH_DIR("/home/joel/work-gnat/svn/m32r-install/m32r-elf/lib");<br>
-SECTIONS<br>
-{<br>
- /* Read-only sections, merged into text segment: */<br>
- PROVIDE (__executable_start = 0x100); . = 0x100;<br>
- .interp : { *(.interp) }<br>
- .note.gnu.build-id : { *(.note.gnu.build-id) }<br>
- .hash : { *(.hash) }<br>
- .gnu.hash : { *(.gnu.hash) }<br>
- .dynsym : { *(.dynsym) }<br>
- .dynstr : { *(.dynstr) }<br>
- .gnu.version : { *(.gnu.version) }<br>
- .gnu.version_d : { *(.gnu.version_d) }<br>
- .gnu.version_r : { *(.gnu.version_r) }<br>
- .rel.init : { *(.rel.init) }<br>
- .rela.init : { *(.rela.init) }<br>
- .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }<br>
- .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }<br>
- .rel.fini : { *(.rel.fini) }<br>
- .rela.fini : { *(.rela.fini) }<br>
- .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }<br>
- .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }<br>
- .<a href="http://rel.data.rel.ro" rel="noreferrer" target="_blank">rel.data.rel.ro</a> : { *(.<a href="http://rel.data.rel.ro" rel="noreferrer" target="_blank">rel.data.rel.ro</a>* .rel.gnu.linkonce.d.rel.ro.*) }<br>
- .<a href="http://rela.data.rel.ro" rel="noreferrer" target="_blank">rela.data.rel.ro</a> : { *(.<a href="http://rela.data.rel.ro" rel="noreferrer" target="_blank">rela.data.rel.ro</a>* .rela.gnu.linkonce.d.rel.ro.*) }<br>
- .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }<br>
- .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }<br>
- .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }<br>
- .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }<br>
- .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }<br>
- .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }<br>
- .rel.ctors : { *(.rel.ctors) }<br>
- .rela.ctors : { *(.rela.ctors) }<br>
- .rel.dtors : { *(.rel.dtors) }<br>
- .rela.dtors : { *(.rela.dtors) }<br>
- .rel.got : { *(.rel.got) }<br>
- .rela.got : { *(.rela.got) }<br>
- .rel.sdata : { *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) }<br>
- .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) }<br>
- .rel.sbss : { *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) }<br>
- .rela.sbss : { *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) }<br>
- .rel.sdata2 : { *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) }<br>
- .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) }<br>
- .rel.sbss2 : { *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) }<br>
- .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) }<br>
- .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }<br>
- .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }<br>
- .rel.plt : { *(.rel.plt) }<br>
- .rela.plt : { *(.rela.plt) }<br>
- .init :<br>
- {<br>
- KEEP (*(.init))<br>
- } =0<br>
- .plt : { *(.plt) }<br>
- .text :<br>
- {<br>
- *(.text .stub .text.* .gnu.linkonce.t.*)<br>
- /* .gnu.warning sections are handled specially by elf32.em. */<br>
- *(.gnu.warning)<br>
- } =0<br>
- .fini :<br>
- {<br>
- KEEP (*(.fini))<br>
- } =0<br>
- PROVIDE (__etext = .);<br>
- PROVIDE (_etext = .);<br>
- PROVIDE (etext = .);<br>
- .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) KEEP (*(SORT(.rtemsroset.*))) }<br>
- .rodata1 : { *(.rodata1) }<br>
- .tdata : {<br>
- _TLS_Data_begin = .;<br>
- *(.tdata .tdata.* .gnu.linkonce.td.*)<br>
- _TLS_Data_end = .;<br>
- }<br>
- .tbss : {<br>
- _TLS_BSS_begin = .;<br>
- *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)<br>
- _TLS_BSS_end = .;<br>
- }<br>
- _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin;<br>
- _TLS_Data_begin = _TLS_Data_size != 0 ? _TLS_Data_begin : _TLS_BSS_begin;<br>
- _TLS_Data_end = _TLS_Data_size != 0 ? _TLS_Data_end : _TLS_BSS_begin;<br>
- _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;<br>
- _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;<br>
- _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));<br>
- .sdata2 :<br>
- {<br>
- *(.sdata2 .sdata2.* .gnu.linkonce.s2.*)<br>
- }<br>
- .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }<br>
- .eh_frame_hdr : { *(.eh_frame_hdr) }<br>
- .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }<br>
- .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }<br>
- /* Adjust the address for the data segment. We want to adjust up to<br>
- the same address within the page on the next page up. */<br>
- . = ALIGN(32) + (. & (32 - 1));<br>
- /* Exception handling */<br>
- .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }<br>
- .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }<br>
- /* Thread Local Storage sections */<br>
- .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }<br>
- .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }<br>
- .preinit_array :<br>
- {<br>
- PROVIDE_HIDDEN (__preinit_array_start = .);<br>
- KEEP (*(.preinit_array))<br>
- PROVIDE_HIDDEN (__preinit_array_end = .);<br>
- }<br>
- .init_array :<br>
- {<br>
- PROVIDE_HIDDEN (__init_array_start = .);<br>
- KEEP (*(SORT(.init_array.*)))<br>
- KEEP (*(.init_array))<br>
- PROVIDE_HIDDEN (__init_array_end = .);<br>
- }<br>
- .fini_array :<br>
- {<br>
- PROVIDE_HIDDEN (__fini_array_start = .);<br>
- KEEP (*(.fini_array))<br>
- KEEP (*(SORT(.fini_array.*)))<br>
- PROVIDE_HIDDEN (__fini_array_end = .);<br>
- }<br>
- .ctors :<br>
- {<br>
- /* gcc uses crtbegin.o to find the start of<br>
- the constructors, so we make sure it is<br>
- first. Because this is a wildcard, it<br>
- doesn't matter if the user does not<br>
- actually link against crtbegin.o; the<br>
- linker won't look for a file to match a<br>
- wildcard. The wildcard also means that it<br>
- doesn't matter which directory crtbegin.o<br>
- is in. */<br>
- KEEP (*crtbegin.o(.ctors))<br>
- KEEP (*crtbegin?.o(.ctors))<br>
- /* We don't want to include the .ctor section from<br>
- the crtend.o file until after the sorted ctors.<br>
- The .ctor section from the crtend file contains the<br>
- end of ctors marker and it must be last */<br>
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))<br>
- KEEP (*(SORT(.ctors.*)))<br>
- KEEP (*(.ctors))<br>
- }<br>
- .dtors :<br>
- {<br>
- KEEP (*crtbegin.o(.dtors))<br>
- KEEP (*crtbegin?.o(.dtors))<br>
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))<br>
- KEEP (*(SORT(.dtors.*)))<br>
- KEEP (*(.dtors))<br>
- }<br>
- .jcr : { KEEP (*(.jcr)) }<br>
- .<a href="http://data.rel.ro" rel="noreferrer" target="_blank">data.rel.ro</a> : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.<a href="http://data.rel.ro" rel="noreferrer" target="_blank">data.rel.ro</a>* .gnu.linkonce.d.rel.ro.*) }<br>
- .dynamic : { *(.dynamic) }<br>
- .data :<br>
- {<br>
- *(.data .data.* .gnu.linkonce.d.*)<br>
- KEEP (*(SORT(.rtemsrwset.*)))<br>
- SORT(CONSTRUCTORS)<br>
- }<br>
- .data1 : { *(.data1) }<br>
- .got : { *(.got.plt) *(.got) }<br>
- /* We want the small data sections together, so single-instruction offsets<br>
- can access them all, and initialized data all before uninitialized, so<br>
- we can shorten the on-disk segment size. */<br>
- .sdata :<br>
- {<br>
- *(.sdata .sdata.* .gnu.linkonce.s.*)<br>
- }<br>
- _edata = .; PROVIDE (edata = .);<br>
- __bss_start = .;<br>
- .sbss :<br>
- {<br>
- *(.dynsbss)<br>
- *(.sbss .sbss.* .gnu.linkonce.sb.*)<br>
- *(.scommon)<br>
- }<br>
- .bss :<br>
- {<br>
- *(.dynbss)<br>
- *(.bss .bss.* .gnu.linkonce.b.*)<br>
- *(COMMON)<br>
- /* Align here to ensure that the .bss section occupies space up to<br>
- _end. Align after .bss to ensure correct alignment even if the<br>
- .bss section disappears because there are no input sections.<br>
- FIXME: Why do we need it? When there is no .bss section, we don't<br>
- pad the .data section. */<br>
- . = ALIGN(. != 0 ? 32 / 8 : 1);<br>
- }<br>
- . = ALIGN(32 / 8);<br>
- . = ALIGN(32 / 8);<br>
- _end = .; PROVIDE (end = .);<br>
- . = ALIGN(16);<br>
-<br>
- . += StackSize;<br>
- PROVIDE (_stack = .);<br>
- PROVIDE (WorkAreaBase = .);<br>
- . = 0x800000;<br>
- /* Stabs debugging sections. */<br>
- .stab 0 : { *(.stab) }<br>
- .stabstr 0 : { *(.stabstr) }<br>
- .stab.excl 0 : { *(.stab.excl) }<br>
- .stab.exclstr 0 : { *(.stab.exclstr) }<br>
- .stab.index 0 : { *(.stab.index) }<br>
- .stab.indexstr 0 : { *(.stab.indexstr) }<br>
- .comment 0 : { *(.comment) }<br>
- /* DWARF debug sections.<br>
- Symbols in the DWARF debugging sections are relative to the beginning<br>
- of the section so we begin them at 0. */<br>
- /* DWARF 1 */<br>
- .debug 0 : { *(.debug) }<br>
- .line 0 : { *(.line) }<br>
- /* GNU DWARF 1 extensions */<br>
- .debug_srcinfo 0 : { *(.debug_srcinfo) }<br>
- .debug_sfnames 0 : { *(.debug_sfnames) }<br>
- /* DWARF 1.1 and DWARF 2 */<br>
- .debug_aranges 0 : { *(.debug_aranges) }<br>
- .debug_pubnames 0 : { *(.debug_pubnames) }<br>
- /* DWARF 2 */<br>
- .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }<br>
- .debug_abbrev 0 : { *(.debug_abbrev) }<br>
- .debug_line 0 : { *(.debug_line) }<br>
- .debug_frame 0 : { *(.debug_frame) }<br>
- .debug_str 0 : { *(.debug_str) }<br>
- .debug_loc 0 : { *(.debug_loc) }<br>
- .debug_macinfo 0 : { *(.debug_macinfo) }<br>
- /* SGI/MIPS DWARF 2 extensions */<br>
- .debug_weaknames 0 : { *(.debug_weaknames) }<br>
- .debug_funcnames 0 : { *(.debug_funcnames) }<br>
- .debug_typenames 0 : { *(.debug_typenames) }<br>
- .debug_varnames 0 : { *(.debug_varnames) }<br>
- /* DWARF 3 */<br>
- .debug_pubtypes 0 : { *(.debug_pubtypes) }<br>
- .debug_ranges 0 : { *(.debug_ranges) }<br>
- /* DWARF extension */<br>
- .debug_macro 0 : { *(.debug_macro) }<br>
- .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }<br>
- /* PROVIDE (_stack = 0x800000); */<br>
- /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) }<br>
-}<br>
<br>
_______________________________________________<br>
vc mailing list<br>
<a href="mailto:vc@rtems.org">vc@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/vc" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/vc</a><br>
</blockquote></div><br></div>