[Xenomai-git] Philippe Gerum : cobalt/sh: drop support for the SH4 architecture

2015-08-15 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: b9e809f9ddf03684a6e38b35b847391326db10a0
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b9e809f9ddf03684a6e38b35b847391326db10a0

Author: Philippe Gerum r...@xenomai.org
Date:   Sat Aug 15 16:15:36 2015 +0200

cobalt/sh: drop support for the SH4 architecture

We don't have any interrupt pipeline implementation for 3.x+ kernels
on SH4, currently which is a requirement for running Xenomai 3, so
there is no point in keeping this architecture code in-tree.

---

 configure.ac   |8 -
 kernel/cobalt/arch/sh/Kconfig  |   21 --
 kernel/cobalt/arch/sh/Makefile |6 -
 .../arch/sh/include/asm/xenomai/calibration.h  |   38 ---
 .../cobalt/arch/sh/include/asm/xenomai/features.h  |   30 --
 kernel/cobalt/arch/sh/include/asm/xenomai/fptest.h |   44 ---
 .../cobalt/arch/sh/include/asm/xenomai/machine.h   |   38 ---
 .../cobalt/arch/sh/include/asm/xenomai/syscall.h   |   57 
 .../cobalt/arch/sh/include/asm/xenomai/syscall32.h |   24 --
 kernel/cobalt/arch/sh/include/asm/xenomai/thread.h |   76 -
 .../arch/sh/include/asm/xenomai/uapi/arith.h   |   35 ---
 .../arch/sh/include/asm/xenomai/uapi/features.h|   44 ---
 .../arch/sh/include/asm/xenomai/uapi/fptest.h  |   31 --
 .../arch/sh/include/asm/xenomai/uapi/syscall.h |   23 --
 .../cobalt/arch/sh/include/asm/xenomai/wrappers.h  |   24 --
 kernel/cobalt/arch/sh/machine.c|   60 
 kernel/cobalt/arch/sh/mayday.c |   99 --
 kernel/cobalt/arch/sh/patches/README   |   18 --
 kernel/cobalt/arch/sh/thread.c |  315 
 kernel/cobalt/arch/sh/trampoline.S |   32 --
 lib/cobalt/arch/Makefile.am|2 +-
 lib/cobalt/arch/sh/Makefile.am |   13 -
 lib/cobalt/arch/sh/features.c  |   63 
 lib/cobalt/arch/sh/include/Makefile.am |2 -
 lib/cobalt/arch/sh/include/asm/Makefile.am |2 -
 lib/cobalt/arch/sh/include/asm/xenomai/Makefile.am |5 -
 lib/cobalt/arch/sh/include/asm/xenomai/features.h  |   30 --
 lib/cobalt/arch/sh/include/asm/xenomai/syscall.h   |  116 ---
 lib/cobalt/arch/sh/include/asm/xenomai/tsc.h   |   54 
 29 files changed, 1 insertion(+), 1309 deletions(-)

diff --git a/configure.ac b/configure.ac
index 701d9fd..6db4031 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,10 +148,6 @@ case $build_for in
XENO_TARGET_ARCH=nios2
CONFIG_XENO_DEFAULT_PERIOD=1000
;;
- sh-*|sh4-*)
-   XENO_TARGET_ARCH=sh
-   CONFIG_XENO_DEFAULT_PERIOD=10
-   ;;
  *) echo 
echo ***
echo Still unsupported target: $build_for -- Sorry.
@@ -880,10 +876,6 @@ AC_CONFIG_FILES([ \
lib/cobalt/arch/nios2/include/Makefile \
lib/cobalt/arch/nios2/include/asm/Makefile \
lib/cobalt/arch/nios2/include/asm/xenomai/Makefile \
-   lib/cobalt/arch/sh/Makefile \
-   lib/cobalt/arch/sh/include/Makefile \
-   lib/cobalt/arch/sh/include/asm/Makefile \
-   lib/cobalt/arch/sh/include/asm/xenomai/Makefile \
lib/mercury/Makefile \
lib/copperplate/Makefile \
lib/copperplate/regd/Makefile \
diff --git a/kernel/cobalt/arch/sh/Kconfig b/kernel/cobalt/arch/sh/Kconfig
deleted file mode 100644
index af23fa0..000
--- a/kernel/cobalt/arch/sh/Kconfig
+++ /dev/null
@@ -1,21 +0,0 @@
-config IPIPE_WANT_ACTIVE_MM
-bool
-
-config XENO_ARCH_FPU
-   def_bool SH_FPU
-
-config XENO_ARCH_SYS3264
-def_bool n
-
-menu Machine/platform-specific options
-
-config IPIPE_WANT_PREEMPTIBLE_SWITCH
-bool
-   select IPIPE_WANT_ACTIVE_MM
-   default y if XENO_ARCH_UNLOCKED_SWITCH
-   default n if !XENO_ARCH_UNLOCKED_SWITCH
-
-endmenu
-
-source kernel/xenomai/Kconfig
-source drivers/xenomai/Kconfig
diff --git a/kernel/cobalt/arch/sh/Makefile b/kernel/cobalt/arch/sh/Makefile
deleted file mode 100644
index 82477a1..000
--- a/kernel/cobalt/arch/sh/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-
-obj-$(CONFIG_XENOMAI) += xenomai.o
-
-xenomai-y := machine.o mayday.o thread.o trampoline.o
-
-ccflags-y := -Iarch/sh/xenomai/include -Iinclude/xenomai
diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h 
b/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h
deleted file mode 100644
index 834febf..000
--- a/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2011 Philippe Gerum r...@xenomai.org.
- *
- * Xenomai is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- * 

[Xenomai-git] Philippe Gerum : cobalt/sh: drop support for the SH4 architecture

2015-08-15 Thread git repository hosting
Module: xenomai-3
Branch: master
Commit: b9e809f9ddf03684a6e38b35b847391326db10a0
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b9e809f9ddf03684a6e38b35b847391326db10a0

Author: Philippe Gerum r...@xenomai.org
Date:   Sat Aug 15 16:15:36 2015 +0200

cobalt/sh: drop support for the SH4 architecture

We don't have any interrupt pipeline implementation for 3.x+ kernels
on SH4, currently which is a requirement for running Xenomai 3, so
there is no point in keeping this architecture code in-tree.

---

 configure.ac   |8 -
 kernel/cobalt/arch/sh/Kconfig  |   21 --
 kernel/cobalt/arch/sh/Makefile |6 -
 .../arch/sh/include/asm/xenomai/calibration.h  |   38 ---
 .../cobalt/arch/sh/include/asm/xenomai/features.h  |   30 --
 kernel/cobalt/arch/sh/include/asm/xenomai/fptest.h |   44 ---
 .../cobalt/arch/sh/include/asm/xenomai/machine.h   |   38 ---
 .../cobalt/arch/sh/include/asm/xenomai/syscall.h   |   57 
 .../cobalt/arch/sh/include/asm/xenomai/syscall32.h |   24 --
 kernel/cobalt/arch/sh/include/asm/xenomai/thread.h |   76 -
 .../arch/sh/include/asm/xenomai/uapi/arith.h   |   35 ---
 .../arch/sh/include/asm/xenomai/uapi/features.h|   44 ---
 .../arch/sh/include/asm/xenomai/uapi/fptest.h  |   31 --
 .../arch/sh/include/asm/xenomai/uapi/syscall.h |   23 --
 .../cobalt/arch/sh/include/asm/xenomai/wrappers.h  |   24 --
 kernel/cobalt/arch/sh/machine.c|   60 
 kernel/cobalt/arch/sh/mayday.c |   99 --
 kernel/cobalt/arch/sh/patches/README   |   18 --
 kernel/cobalt/arch/sh/thread.c |  315 
 kernel/cobalt/arch/sh/trampoline.S |   32 --
 lib/cobalt/arch/Makefile.am|2 +-
 lib/cobalt/arch/sh/Makefile.am |   13 -
 lib/cobalt/arch/sh/features.c  |   63 
 lib/cobalt/arch/sh/include/Makefile.am |2 -
 lib/cobalt/arch/sh/include/asm/Makefile.am |2 -
 lib/cobalt/arch/sh/include/asm/xenomai/Makefile.am |5 -
 lib/cobalt/arch/sh/include/asm/xenomai/features.h  |   30 --
 lib/cobalt/arch/sh/include/asm/xenomai/syscall.h   |  116 ---
 lib/cobalt/arch/sh/include/asm/xenomai/tsc.h   |   54 
 29 files changed, 1 insertion(+), 1309 deletions(-)

diff --git a/configure.ac b/configure.ac
index 701d9fd..6db4031 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,10 +148,6 @@ case $build_for in
XENO_TARGET_ARCH=nios2
CONFIG_XENO_DEFAULT_PERIOD=1000
;;
- sh-*|sh4-*)
-   XENO_TARGET_ARCH=sh
-   CONFIG_XENO_DEFAULT_PERIOD=10
-   ;;
  *) echo 
echo ***
echo Still unsupported target: $build_for -- Sorry.
@@ -880,10 +876,6 @@ AC_CONFIG_FILES([ \
lib/cobalt/arch/nios2/include/Makefile \
lib/cobalt/arch/nios2/include/asm/Makefile \
lib/cobalt/arch/nios2/include/asm/xenomai/Makefile \
-   lib/cobalt/arch/sh/Makefile \
-   lib/cobalt/arch/sh/include/Makefile \
-   lib/cobalt/arch/sh/include/asm/Makefile \
-   lib/cobalt/arch/sh/include/asm/xenomai/Makefile \
lib/mercury/Makefile \
lib/copperplate/Makefile \
lib/copperplate/regd/Makefile \
diff --git a/kernel/cobalt/arch/sh/Kconfig b/kernel/cobalt/arch/sh/Kconfig
deleted file mode 100644
index af23fa0..000
--- a/kernel/cobalt/arch/sh/Kconfig
+++ /dev/null
@@ -1,21 +0,0 @@
-config IPIPE_WANT_ACTIVE_MM
-bool
-
-config XENO_ARCH_FPU
-   def_bool SH_FPU
-
-config XENO_ARCH_SYS3264
-def_bool n
-
-menu Machine/platform-specific options
-
-config IPIPE_WANT_PREEMPTIBLE_SWITCH
-bool
-   select IPIPE_WANT_ACTIVE_MM
-   default y if XENO_ARCH_UNLOCKED_SWITCH
-   default n if !XENO_ARCH_UNLOCKED_SWITCH
-
-endmenu
-
-source kernel/xenomai/Kconfig
-source drivers/xenomai/Kconfig
diff --git a/kernel/cobalt/arch/sh/Makefile b/kernel/cobalt/arch/sh/Makefile
deleted file mode 100644
index 82477a1..000
--- a/kernel/cobalt/arch/sh/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-
-obj-$(CONFIG_XENOMAI) += xenomai.o
-
-xenomai-y := machine.o mayday.o thread.o trampoline.o
-
-ccflags-y := -Iarch/sh/xenomai/include -Iinclude/xenomai
diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h 
b/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h
deleted file mode 100644
index 834febf..000
--- a/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2011 Philippe Gerum r...@xenomai.org.
- *
- * Xenomai is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Xenomai is distributed in the hope that it will be useful, but
- *