diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 19:57:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 19:57:02 +0000 |
commit | 8ef38186faea3d9b5e6f0f1242f668cb7e7a3d52 (patch) | |
tree | 9253f150814c99167239f7c2cc850cdd9d92c003 /make/custom/eth_comm.cfg | |
parent | Ensure that when -msoft-float is specified for multilib builds, that (diff) | |
download | rtems-8ef38186faea3d9b5e6f0f1242f668cb7e7a3d52.tar.bz2 |
Patch from John Cotton <john.cotton@nrc.ca>, Charles-Antoine Gauthier
<charles.gauthier@iit.nrc.ca>, and Darlene A. Stewart
<Darlene.Stewart@nrc.ca> to add support for a number of very
significant things:
+ BSPs for many variations on the Motorola MBX8xx board series
+ Cache Manager including initial support for m68040
and PowerPC
+ Rework of mpc8xx libcpu code so all mpc8xx CPUs now use
same code base.
+ Rework of eth_comm BSP to utiltize above.
John reports this works on the 821 and 860
Diffstat (limited to '')
-rw-r--r-- | make/custom/eth_comm.cfg | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/make/custom/eth_comm.cfg b/make/custom/eth_comm.cfg index cde4b4ee30..901decbb77 100644 --- a/make/custom/eth_comm.cfg +++ b/make/custom/eth_comm.cfg @@ -7,7 +7,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg RTEMS_CPU=powerpc -RTEMS_CPU_MODEL=mpc860 +RTEMS_CPU_MODEL=mpc8xx +CPU_TYPE=860 # This is the actual bsp directory used during the build process. RTEMS_BSP_FAMILY=eth_comm @@ -25,17 +26,45 @@ CPU_DEFINES=-DPPC_VECTOR_FILE_BASE=0x00000000 # # RTEMS_DEBUG (RTEMS) # If defined, debug checks in RTEMS and support library code are enabled. +# +# PPC_VECTOR_FILE_BASE (PowerPC) +# This defines the base address of the exception table. +# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 +# +# PPC_ABI (PowerPC) +# 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 (PowerPC) +# This defines the assembly language format used in this configuration. +# ELF is the only one supported. +# +# PPC_USE_SPRG (RTEMS PowerPC port) +# If defined (=1), 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 "#ifdef mpc$(CPU_TYPE)" >>$@ + @echo "#undef mpc$(CPU_TYPE)" >>$@ + @echo "#endif" >>$@ + @echo "#define mpc$(CPU_TYPE) 1" >>$@ + @echo >>$@ @echo "/* #define NDEBUG 1 */ " >>$@ @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ @echo "/* #define RTEMS_DEBUG 1 */" >>$@ + @echo "#define PPC_VECTOR_FILE_BASE 0x0000" >>$@ + @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 # and (hopefully) optimize for it. # -CPU_CFLAGS = -mcpu=860 +CPU_CFLAGS = -mcpu=$(CPU_TYPE) # optimize flag: typically -0, could use -O4 or -fast # -O4 is ok for RTEMS |