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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Apr  9 00:53:30 2013 +0200

x86/hal: i386 disappeared from Linux 3.8

---

 include/asm-x86/hal_32.h      |    4 ----
 include/asm-x86/wrappers_32.h |    6 ++++++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/asm-x86/hal_32.h b/include/asm-x86/hal_32.h
index 4251fa0..480fcf2 100644
--- a/include/asm-x86/hal_32.h
+++ b/include/asm-x86/hal_32.h
@@ -57,10 +57,6 @@
 
 #include <asm-generic/xenomai/hal.h>   /* Read the generic bits. */
 
-#ifndef CONFIG_X86_WP_WORKS_OK
-#error "Xenomai has to rely on the WP bit, CONFIG_M486 or better required"
-#endif /* CONFIG_X86_WP_WORKS_OK */
-
 #if defined(CONFIG_X86_LOCAL_APIC) && \
   defined(apic_write_around) && !defined(CONFIG_X86_GOOD_APIC)
 #error "Xenomai needs a working LAPIC - if your machine has a bad one, you"
diff --git a/include/asm-x86/wrappers_32.h b/include/asm-x86/wrappers_32.h
index 2f1dcb9..725deb3 100644
--- a/include/asm-x86/wrappers_32.h
+++ b/include/asm-x86/wrappers_32.h
@@ -93,6 +93,12 @@ typedef phys_addr_t resource_size_t;
                :"1" (addr),"g" ((int)(size)),"g" 
(task_thread_info(task)->addr_limit.seg)); \
        flag == 0; })
 
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,8,0)
+#ifndef CONFIG_X86_WP_WORKS_OK
+#error "Xenomai has to rely on the WP bit, CONFIG_M486 or better required"
+#endif /* CONFIG_X86_WP_WORKS_OK */
+#endif /* Linux <= 3.8.0 */
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
 #ifdef TS_USEDFPU
 #define wrap_test_fpu_used(task)  \


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

Reply via email to