summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-14 21:32:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-14 21:32:56 +0000
commit92e15e08c260d4f5b0e8c4508bde2e49ba086994 (patch)
tree7578e2b3a5f62f24e6b43851d7841089295e4746
parentc244a9ee2c3061b70b9b187bec2dacbf3d256b7c (diff)
downloadrtems-92e15e08c260d4f5b0e8c4508bde2e49ba086994.tar.bz2
Updates from PPC refresh
Diffstat (limited to '')
-rw-r--r--make/custom/papyrus.cfg36
1 files changed, 33 insertions, 3 deletions
diff --git a/make/custom/papyrus.cfg b/make/custom/papyrus.cfg
index 62c67f6a69..ec234b4294 100644
--- a/make/custom/papyrus.cfg
+++ b/make/custom/papyrus.cfg
@@ -12,8 +12,9 @@ RTEMS_CPU_MODEL=ppc403
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=papyrus
-CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
- -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
+# These should be defined in targopt.h now.
+#CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
+# -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
# This target does NOT support the KA9Q TCP/IP stack so ignore requests
# to enable it.
@@ -31,14 +32,43 @@ HAS_KA9Q=no
# STACK_CHECKER_ON (RTEMS support code)
# If defined, stack bounds checking is enabled.
#
+# STACK_CHECKER_REPORT_USAGE (RTEMS support code)
+# If this and STACK_CHECKER_ON are defined, then a report on stack usage
+# per task is printed when the program exits.
+#
# RTEMS_DEBUG (RTEMS)
# If defined, debug checks in RTEMS and support library code are enabled.
+#
+#
+# PPC_VECTOR_FILE_BASE (ppc)
+# This defines the base address of the exception table.
+# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
+#
+# PPC_ABI (ppc)
+# This defines the calling convention (Application Binary Interface)
+# used in this configuration. EABI is the only one supported.
+# This BSP was initially developed using the PowerOpen ABI.
+#
+# PPC_ASM (ppc)
+# This defines the assembly language format used in this configuration.
+# ELF is the only one supported.
+#
+# PPC_USE_SPRG (RTEMS PowerPC port)
+# If defined, then the PowerPC specific code in RTEMS will use some
+# of the special purpose registers to slightly optimize interrupt
+# response time. The use of these registers can conflict with
+# other tools like debuggers.
define make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define STACK_CHECKER_ON 1 */" >>$@
+ @echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
+ @echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
+ @echo "#define PPC_ABI PPC_ABI_EABI" >>$@
+ @echo "#define PPC_ASM PPC_ASM_ELF" >>$@
+ @echo "#define PPC_USE_SPRG 1" >>$@
endef
# This contains the compiler options necessary to select the CPU model
@@ -71,7 +101,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS)
+ $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef