Module: xenomai-forge Branch: master Commit: a8a4da11565ad21ae5301f986e62560baee88cdd URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a8a4da11565ad21ae5301f986e62560baee88cdd
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Thu Oct 24 18:22:32 2013 +0100 cobalt/x86: Remove bogus test for x86-32 around xsave assembly We catch 32 vs. 64 already via XSAVE_PREFIX/SUFFIX. Rather, this additional condition breaks x86-32 build for old binutils. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- kernel/cobalt/arch/x86/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cobalt/arch/x86/thread.c b/kernel/cobalt/arch/x86/thread.c index 24363df..d7fba09 100644 --- a/kernel/cobalt/arch/x86/thread.c +++ b/kernel/cobalt/arch/x86/thread.c @@ -157,7 +157,7 @@ static inline void __do_save_i387(x86_fpustate *fpup) { #ifdef cpu_has_xsave if (cpu_has_xsave) { -#if defined(CONFIG_AS_AVX) || defined CONFIG_X86_32 +#ifdef CONFIG_AS_AVX __asm__ __volatile__("xsave" XSAVE_SUFFIX " %0" : "=m" (fpup->xsave) : "a" (-1), "d" (-1) : "memory"); @@ -190,7 +190,7 @@ static inline void __do_restore_i387(x86_fpustate *fpup) { #ifdef cpu_has_xsave if (cpu_has_xsave) { -#if defined(CONFIG_AS_AVX) || defined CONFIG_X86_32 +#ifdef CONFIG_AS_AVX __asm__ __volatile__("xrstor" XSAVE_SUFFIX " %0" : : "m" (fpup->xsave), "a" (-1), "d" (-1) : "memory"); _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git