Module: xenomai-jki Branch: for-upstream Commit: ba1fbd5b44df7e60bb4c1886431e0923cab9c4e8 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=ba1fbd5b44df7e60bb4c1886431e0923cab9c4e8
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Thu Jan 24 19:50:59 2013 +0100 x86: Disable AVX/AVX2 when emulating "noxsave" Lacking xsave support implies absence of AVX[2], the xor module will stumble over it (crash) when trying to find the fastest method. Therefore, disable those features on kernels that understand it. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- include/asm-x86/ipipe/setup.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/asm-x86/ipipe/setup.h b/include/asm-x86/ipipe/setup.h index baed275..e797739 100644 --- a/include/asm-x86/ipipe/setup.h +++ b/include/asm-x86/ipipe/setup.h @@ -13,6 +13,12 @@ static inline void __ipipe_early_client_setup(void) if (cpu_has_xsave) { setup_clear_cpu_cap(X86_FEATURE_XSAVE); setup_clear_cpu_cap(X86_FEATURE_XSAVEOPT); +#ifdef X86_FEATURE_AVX + setup_clear_cpu_cap(X86_FEATURE_AVX); +#endif +#ifdef X86_FEATURE_AVX2 + setup_clear_cpu_cap(X86_FEATURE_AVX2); +#endif printk(KERN_INFO "Xenomai: forcing noxsave"); } } _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git