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:
parent
10a1b48d57
commit
73ece80eb1
3 changed files with 14991 additions and 4 deletions
14985
base/arch/x86/patches/hal-linux-3.14.17-x86-1.patch
Normal file
14985
base/arch/x86/patches/hal-linux-3.14.17-x86-1.patch
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue