Module: xenomai-2.6
Branch: master
Commit: a9d60e4c0d60e699e1700b3577eab8d946ef41de
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=a9d60e4c0d60e699e1700b3577eab8d946ef41de

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Oct 24 18:22:32 2013 +0100

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>

---

 include/asm-x86/bits/pod.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-x86/bits/pod.h b/include/asm-x86/bits/pod.h
index a32575f..c6fbcee 100644
--- a/include/asm-x86/bits/pod.h
+++ b/include/asm-x86/bits/pod.h
@@ -241,7 +241,7 @@ static inline void __save_i387(x86_fpustate *fpup)
 {
 #ifdef cpu_has_xsave
        if (cpu_has_xsave) {
-#if defined(CONFIG_AS_AVX) || !defined CONFIG_X86_64
+#if defined(CONFIG_AS_AVX)
                asm volatile("xsave" XSAVE_SUFFIX " %0"
                             : "=m" (fpup->xsave) : "a" (-1), "d" (-1)
                             : "memory");
@@ -301,7 +301,7 @@ static inline void __restore_i387(x86_fpustate *fpup)
 {
 #ifdef cpu_has_xsave
        if (cpu_has_xsave) {
-#if defined(CONFIG_AS_AVX) || !defined(CONFIG_X86_64)
+#if defined(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

Reply via email to