Gilles Chanteperdrix wrote:
For review...



------------------------------------------------------------------------

Index: include/asm-i386/features.h
===================================================================
--- include/asm-i386/features.h (revision 941)
+++ include/asm-i386/features.h (working copy)
@@ -76,4 +76,35 @@
     }
 }
+#ifndef __KERNEL__
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+static inline void xeno_x86_features_check(void)
+{
+#ifdef CONFIG_XENO_X86_SEP
+  size_t n = confstr(_CS_GNU_LIBPTHREAD_VERSION, NULL, 0);
+  if (n > 0)
+      {
+      char *buf = malloc(n);
+      int isnptl;
+ + confstr (_CS_GNU_LIBPTHREAD_VERSION, buf, n);
+      isnptl = strstr (buf, "NPTL") != NULL;
+      free(buf);
+
+      if (isnptl)
+          return;
+      }
+
+  fprintf(stderr, "Xenomai: SEP instruction needs NPTL and NPTL was not 
detected"
+          "\nplease install NPTL or recompile Xenomai without enabling 
SEP.\n");

- "\nplease install NPTL or recompile Xenomai without enabling SEP.\n"); + "\nplease install NPTL or rebuild the user-space support passing --disable-x86-sep.\n");


<snip>

+static inline void xeno_mlock_alert_end(void)
+{
+    struct sigaction sa;
+
+    sigaction(SIGXCPU, NULL, &sa);
+    if (sa.sa_handler == &xeno_handle_mlock_alert)
+        {
+        sa.sa_handler = SIG_DFL;
+        sigaction(SIGXCPU, &sa, NULL);
+        }
+}
+

-ENOPARSE here. Which code is expected to call xeno_mlock_alert_end()?

<snip>

--

Philippe.

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

Reply via email to