Add 3.14 kernel RTAI support

Includes 3.14.17 kernel patch

Signed-off-by: Alec Ari <neotheuser@ymail.com>
This commit is contained in:
Alec Ari 2014-08-19 23:03:20 -05:00
parent 10a1b48d57
commit 73ece80eb1
3 changed files with 14991 additions and 4 deletions

File diff suppressed because it is too large Load diff

View file

@ -135,7 +135,9 @@ static inline void _lxrt_context_switch (struct task_struct *prev, struct task_s
math_restore do a "clts" before orring TS_USEDFPU in status ????? */
if (task_thread_info(prev)->status & TS_USEDFPU) clts();
#endif
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18)
#if LINUX_VERSION_CODE > KERNEL_VERSION(3,14,0)
prev->thread.fpu_counter = 0;
#else
prev->fpu_counter = 0;
#endif
context_switch(NULL, prev, next);

View file

@ -1197,15 +1197,15 @@ RTAI_KBUILD_DISTCLEAN=""
AC_MSG_CHECKING([for kernel module extension])
AC_MSG_RESULT([$RTAI_MODULE_EXT])
RTAI_REAL_USER_CFLAGS="-O2 -fomit-frame-pointer"
RTAI_REAL_USER_CFLAGS=""
if test x"$LINUX_KERNELOUTPUT" != x"$LINUX_KERNELSRC"; then
RTAI_REAL_USER_CFLAGS="-I$LINUX_KERNELOUTPUT/include $RTAI_REAL_USER_CFLAGS"
fi
dnl extra arch-dependent opts to be passed to the compiler
RTAI_KMOD_CXXFLAGS="$RTAI_KMOD_CFLAGS -fno-rtti -fno-exceptions -fno-strength-reduce -pipe"
RTAI_REAL_USER_CFLAGS="$RTAI_REAL_USER_CFLAGS -Wall -Wstrict-prototypes -pipe"
RTAI_KMOD_CXXFLAGS="$RTAI_KMOD_CFLAGS -fno-rtti -fno-exceptions -fno-strength-reduce"
RTAI_REAL_USER_CFLAGS="$RTAI_REAL_USER_CFLAGS -Wall -Wstrict-prototypes"
RTAI_FP_CFLAGS="$RTAI_FP_CFLAGS -ffreestanding -fno-builtin-sin -fno-builtin-cos -mieee-fp -mhard-float -mpreferred-stack-boundary=4 -msse -Wno-undef"
if test x$CONFIG_RTAI_KMOD_DEBUG = xy; then