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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Dec 23 21:04:16 2012 +0100

x86: force noxsave at boot

Since we don't handle the extended processor state yet, we disable
xsave/xrstor to keep a correct behavior.

---

 include/asm-x86/ipipe/setup.h |    5 ++++-
 scripts/prepare-kernel.sh     |    3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/asm-x86/ipipe/setup.h b/include/asm-x86/ipipe/setup.h
index 144300b..231aa6b 100644
--- a/include/asm-x86/ipipe/setup.h
+++ b/include/asm-x86/ipipe/setup.h
@@ -4,7 +4,10 @@
 #include <asm/processor.h>
 
 #ifdef cpu_has_xsave
-
+/*
+ * We don't handle the extended processor state yet. Disable
+ * xsave/xrstor to keep a correct behavior.
+ */
 static inline void __ipipe_early_client_setup(void)
 {
        setup_clear_cpu_cap(X86_FEATURE_XSAVE);
diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
index f617634..36f9a4a 100755
--- a/scripts/prepare-kernel.sh
+++ b/scripts/prepare-kernel.sh
@@ -601,7 +601,8 @@ for d in include/* ; do
         patch_link r n $d $destdir
     fi
 done
-if test -r $linux_tree/arch/$linux_arch/include/asm/ipipe.h
+if test -r $linux_tree/arch/$linux_arch/include/asm/ipipe.h -a \
+    -d $xenomai_root/include/asm-$xenomai_arch/ipipe
 then
     patch_link n n include/asm-$xenomai_arch/ipipe 
arch/$linux_arch/include/ipipe
 fi


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to