summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-28 15:05:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-28 15:20:52 +0200
commit40ce26534eb88b4fb91b207ed76f044764f391f9 (patch)
tree067fa1a98e0b339cb3e3883143968a04c41c7f40
parentbsps/powerpc: Update debug sections (diff)
downloadrtems-40ce26534eb88b4fb91b207ed76f044764f391f9.tar.bz2
bsp/psim: Use plain symbol for PSIM
This avoids a linker assertion failure in the GCC test suite.
-rw-r--r--c/src/lib/libbsp/powerpc/psim/Makefile.am3
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/linkcmds13
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/psim_registers.c13
3 files changed, 2 insertions, 27 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/Makefile.am b/c/src/lib/libbsp/powerpc/psim/Makefile.am
index a209a330a0..26c194056a 100644
--- a/c/src/lib/libbsp/powerpc/psim/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/psim/Makefile.am
@@ -36,8 +36,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppost.c ../../shared/bsppretaskinghook.c \
../../shared/bsppredriverhook.c startup/bspstart.c \
../../shared/bspgetworkarea.c ../../shared/bootcard.c \
- ../../powerpc/shared/startup/sbrk.c ../../shared/gnatinstallhandler.c \
- startup/psim_registers.c
+ ../../powerpc/shared/startup/sbrk.c ../../shared/gnatinstallhandler.c
# pclock
libbsp_a_SOURCES += ../shared/clock/p_clock.c
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
index f9bdce73d1..5d2a2b7bae 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
@@ -9,7 +9,6 @@
MEMORY {
RAM : ORIGIN = 0, LENGTH = 16M
- PSIM_REGS : ORIGIN = 0x0c000000, LENGTH = 16M
EMPTY : ORIGIN = 0x0, LENGTH = 0
}
@@ -34,16 +33,6 @@ REGION_ALIAS ("REGION_NVRAM", EMPTY);
PROVIDE (PSIM_INSTRUCTIONS_PER_MICROSECOND = 10000);
-SECTIONS {
- /*
- * BSP: PSIM Register Block
- */
- .psim_regs (NOLOAD) : {
- psim_reg*(.text)
- psim_reg*(.data)
- psim_reg*(.bss)
- psim_reg*(COMMON)
- } > PSIM_REGS
-}
+PSIM = 0x0c000000;
INCLUDE linkcmds.base
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/psim_registers.c b/c/src/lib/libbsp/powerpc/psim/startup/psim_registers.c
deleted file mode 100644
index 894f1de4a5..0000000000
--- a/c/src/lib/libbsp/powerpc/psim/startup/psim_registers.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * COPYRIGHT (c) 1989-2008.
- * 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.
- */
-
-#include <bsp.h>
-#include <psim.h>
-
-psim_registers_t PSIM;