Updates from PPC refresh

This commit is contained in:
Joel Sherrill
1998-04-14 21:32:56 +00:00
parent c244a9ee2c
commit 92e15e08c2

View File

@@ -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