[rtems-libbsd commit] Add support for M68K

Sebastian Huber sebh at rtems.org
Mon Dec 16 14:29:33 UTC 2013


Module:    rtems-libbsd
Branch:    master
Commit:    d73edee71eb15ce393d25680de44cd6e93aabec3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=d73edee71eb15ce393d25680de44cd6e93aabec3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Dec  4 15:37:27 2013 +0100

Add support for M68K

---

 Makefile                       |    2 ++
 freebsd-to-rtems.py            |    2 +-
 rtemsbsd/include/machine/bus.h |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 863f9f5..451b436 100644
--- a/Makefile
+++ b/Makefile
@@ -490,6 +490,7 @@ endif
 ifeq ($(RTEMS_CPU), m68k)
 LIB_C_FILES += freebsd/sys/m68k/m68k/legacy.c
 LIB_C_FILES += freebsd/sys/m68k/pci/pci_bus.c
+NEED_DUMMY_PIC_IRQ=no
 endif
 ifeq ($(RTEMS_CPU), mips)
 LIB_C_FILES += freebsd/sys/mips/mips/legacy.c
@@ -590,6 +591,7 @@ LIB_C_FILES += freebsd/sys/m32r/m32r/in_cksum.c
 endif
 ifeq ($(RTEMS_CPU), m68k)
 LIB_C_FILES += freebsd/sys/m68k/m68k/in_cksum.c
+NEED_DUMMY_PIC_IRQ=no
 endif
 ifeq ($(RTEMS_CPU), mips)
 LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 8e9ca7c..1ec2df6 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -448,7 +448,7 @@ class ModuleManager:
 				data += 'ifeq ($(RTEMS_CPU), ' + cpu + ')\n'
 				for f in files:
 					data += f.getMakefileFragment()
-				if cpu in ("arm", "i386", "lm32", "mips", "powerpc", "sparc"):
+				if cpu in ("arm", "i386", "lm32", "mips", "powerpc", "sparc", "m68k"):
 					data += 'NEED_DUMMY_PIC_IRQ=no\n'
 				data += 'endif\n'
 			if m.conditionalOn != "none":
diff --git a/rtemsbsd/include/machine/bus.h b/rtemsbsd/include/machine/bus.h
index d4b8968..1e6428a 100644
--- a/rtemsbsd/include/machine/bus.h
+++ b/rtemsbsd/include/machine/bus.h
@@ -214,7 +214,7 @@ bus_space_free(bus_space_tag_t bst __unused, bus_space_handle_t bsh, bus_size_t
 
 #if defined(__i386__)
   #include <machine/bus_space-i386.h>
-#elif defined(__PPC__) || defined(__arm__)
+#elif defined(__PPC__) || defined(__arm__) || defined(__m68k__)
   #include <machine/bus_space-simple_memory.h>
 #else
   #warning "Bus space routines not implemented for this architecture!!"




More information about the vc mailing list