Module: xenomai-gch
Branch: for-head
Commit: 03e10ba639330483906e7f2ba704191bffc9812b
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=03e10ba639330483906e7f2ba704191bffc9812b

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Dec 14 11:38:17 2009 +0100

nmi: fix build for linux 2.4

---

 ksrc/arch/x86/nmi.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ksrc/arch/x86/nmi.c b/ksrc/arch/x86/nmi.c
index 19cd16f..283bcd0 100644
--- a/ksrc/arch/x86/nmi.c
+++ b/ksrc/arch/x86/nmi.c
@@ -35,6 +35,14 @@
 #include <asm/intel_arch_perfmon.h>
 #endif /* Linux < 2.6.19 */
 #include <asm/nmi.h>
+#else /* Linux < 2.6 */
+#define X86_FEATURE_ARCH_PERFMON (3*32+11) /* Intel Architecture PerfMon */
+#define rdmsrl(reg, val)                                       \
+       ({                                                      \
+               unsigned val1, val2;                            \
+               rdmsr(reg, val1, val2);                         \
+               asm ( "": "=A"(val) : "a"(val1), "d"(val2));    \
+       })
 #endif /* Linux < 2.6 */
 #include <asm/msr.h>
 #include <asm/xenomai/hal.h>


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to