added BSP to m68k

adapted PPC exception code
This commit is contained in:
Thomas Doerfler
2008-07-11 10:07:00 +00:00
parent 9ab94a1fc7
commit 224aebb3b8
10 changed files with 72 additions and 5 deletions

View File

@@ -1,3 +1,10 @@
2008-07-09 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* aclocal/bsp-alias.m4, aclocal/check-bsps.m4,
make/custom/m5484FireEngine.cfg:
added pgh360 BSP variant
added m5484FireEngine BSP
2008-06-01 Ralf Corsépius <ralf.corsepius@rtems.org> 2008-06-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac, acinclude.m4: s/AC_HELP/AS_HELP/. * configure.ac, acinclude.m4: s/AC_HELP/AS_HELP/.

View File

@@ -194,6 +194,7 @@ i386 : 386ex pc386 pc386dx pc486 pc586 pc686 pck6 ts_386ex
m68k : gen68360 gen68360_040 mvme136 mvme147s mvme162 mvme162lx m68k : gen68360 gen68360_040 mvme136 mvme147s mvme162 mvme162lx
mvme167 ods68302 sim68000 mcf5206elite uC5282 mvme167 ods68302 sim68000 mcf5206elite uC5282
gen68302 csb360 simcpu32 mrm332 av5282 gen68340 mcf5235 idp gen68302 csb360 simcpu32 mrm332 av5282 gen68340 mcf5235 idp
m5484FireEngine
no_cpu : no_bsp (porting example) no_cpu : no_bsp (porting example)

View File

@@ -10,6 +10,8 @@ AC_DEFUN([_RTEMS_BSP_ALIAS],
bare*) $2=bare ;; # EXP: bare-aliases bare*) $2=bare ;; # EXP: bare-aliases
c3xsim) $2=c4xsim ;; # TI C3x Simulator in gdb c3xsim) $2=c4xsim ;; # TI C3x Simulator in gdb
gen68360_040) $2=gen68360 ;; # m68k - 68360 in companion mode gen68360_040) $2=gen68360 ;; # m68k - 68360 in companion mode
pgh360) $2=gen68360 ;; # m68k - 68360 custom board
m5484FireEngine) $2=genmcf548x ;; # m68k - mcf548x eva board
mbx8*) $2=mbx8xx ;; # MBX821/MBX860 board mbx8*) $2=mbx8xx ;; # MBX821/MBX860 board
mcp750) $2=motorola_powerpc ;; # Motorola PPC board variant mcp750) $2=motorola_powerpc ;; # Motorola PPC board variant
mtx603e) $2=motorola_powerpc ;; # Motorola PPC board variant mtx603e) $2=motorola_powerpc ;; # Motorola PPC board variant

View File

@@ -17,7 +17,8 @@ AC_MSG_CHECKING([for available BSPs])
case $bsp_family in case $bsp_family in
# Now account for BSPs with build variants # Now account for BSPs with build variants
c4xsim) bsps="c4xsim c3xsim";; c4xsim) bsps="c4xsim c3xsim";;
gen68360) bsps="gen68360 gen68360_040";; gen68360) bsps="gen68360 gen68360_040 pgh360";;
genmcf548x) bsps="m5484FireEngine";;
p4000) bsps="p4600 p4650";; p4000) bsps="p4600 p4650";;
mvme162) bsps="mvme162 mvme162lx";; mvme162) bsps="mvme162 mvme162lx";;
mbx8xx) bsps="mbx821_001 mbx860_001b" mbx8xx) bsps="mbx821_001 mbx860_001b"

View File

@@ -1,3 +1,10 @@
2008-07-09 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* libchip/display/disp_fonts.h, libchip/display/disp_hcms29xx.c
* libchip/display/disp_hcms29xx.h, libchip/display/font_hcms29xx.c
* libchip/display/font_hcms29xx.h
Creation of SPI display driver
2008-07-09 Sebastian Huber <sebastian.huber@embedded-brains.de> 2008-07-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libchip/i2c/spi-sd-card.h, libchip/i2c/spi-sd-card.c: SD Card driver * libchip/i2c/spi-sd-card.h, libchip/i2c/spi-sd-card.c: SD Card driver

View File

@@ -1,3 +1,17 @@
2008-07-10 Peter Rasmussen <Peter.Rasmussen@embedded-brains.de>
* score/cpu/m68k/cpu_asm.S, cpukit/score/cpu/m68k/rtems/asm.h,
cpukit/score/cpu/m68k/rtems/score/cpu.h,
score/cpu/m68k/rtems/score/m68k.h:
added support to save coldfire FPU/EMAC context
2008-07-10 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* libi2c/libi2c.c, libi2c/libi2c.h:
make buffer passed to *write* functions a const pointer
2008-07-10 Till Straumann <strauman@slac.stanford.edu> 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h, * cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h,

View File

@@ -66,13 +66,16 @@ endif
include_rtems_HEADERS += include/rtems/bspIo.h include/rtems/userenv.h \ include_rtems_HEADERS += include/rtems/bspIo.h include/rtems/userenv.h \
include/rtems/fs.h include/rtems/pci.h include/rtems/stdint.h \ include/rtems/fs.h include/rtems/pci.h include/rtems/stdint.h \
include/rtems/concat.h include/rtems/tar.h include/rtems/concat.h include/rtems/tar.h \
include/rtems/status-checks.h
include_rtems_HEADERS += include/rtems/endian.h include_rtems_HEADERS += include/rtems/endian.h
## should be conditional and only installed for PowerPC, x86, and ARM ## should be conditional and only installed for PowerPC, x86, and ARM
include_rtems_HEADERS += include/rtems/irq.h include_rtems_HEADERS += include/rtems/irq.h
include_rtems_HEADERS += include/rtems/irq-extension.h
## libfs ## libfs
include_rtems_HEADERS += libfs/src/imfs/imfs.h include_rtems_HEADERS += libfs/src/imfs/imfs.h

View File

@@ -34,14 +34,20 @@ extern "C" {
#endif /* RTEMS_STATUS_CHECKS_USE_PRINTK */ #endif /* RTEMS_STATUS_CHECKS_USE_PRINTK */
#endif /* DEBUG_PRINT */ #endif /* DEBUG_PRINT */
#else /* DEBUG */ #else /* DEBUG */
#ifdef DEBUG_PRINT
#warning DEBUG_PRINT was defined, but DEBUG was undefined
#undef DEBUG_PRINT
#endif /* DEBUG_PRINT */
#define DEBUG_PRINT( fmt, ...) #define DEBUG_PRINT( fmt, ...)
#endif /* DEBUG */ #endif /* DEBUG */
#ifndef SYSLOG_PRINT #ifndef SYSLOG_PRINT
#ifdef RTEMS_STATUS_CHECKS_USE_PRINTK #ifdef RTEMS_STATUS_CHECKS_USE_PRINTK
#define SYSLOG_PRINT( fmt, ...) printk( fmt, ##__VA_ARGS__) #define SYSLOG_PRINT( fmt, ...) \
printk( fmt, ##__VA_ARGS__)
#else /* RTEMS_STATUS_CHECKS_USE_PRINTK */ #else /* RTEMS_STATUS_CHECKS_USE_PRINTK */
#define SYSLOG_PRINT( fmt, ...) printf( fmt, ##__VA_ARGS__) #define SYSLOG_PRINT( fmt, ...) \
printf( fmt, ##__VA_ARGS__)
#endif /* RTEMS_STATUS_CHECKS_USE_PRINTK */ #endif /* RTEMS_STATUS_CHECKS_USE_PRINTK */
#endif /* SYSLOG_PRINT */ #endif /* SYSLOG_PRINT */
@@ -177,7 +183,7 @@ extern "C" {
do { \ do { \
rv = val; \ rv = val; \
SYSLOG_ERROR( "RV = %i: %s\n", rv, hint ); \ SYSLOG_ERROR( "RV = %i: %s\n", rv, hint ); \
goto label; goto label; \
} while (0) } while (0)
#ifdef __cplusplus #ifdef __cplusplus

View File

@@ -1,3 +1,8 @@
2008-07-09 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* custom/pgh360.cfg:
Creation from gen68360.cfg
2008-06-29 Ralf Corsépius <ralf.corsepius@rtems.org> 2008-06-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* custom/mcf5329.cfg: Use -mcpu=5307 instead of -m5307. * custom/mcf5329.cfg: Use -mcpu=5307 instead of -m5307.

21
make/custom/pgh360.cfg Normal file
View File

@@ -0,0 +1,21 @@
#
# Config file for a "generic 68360" BSP
#
# $Id$
#
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68360
RTEMS_BOARD_MODEL=PGH360
include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gen68360
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu32 -D$(RTEMS_BOARD_MODEL)
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer