From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [PATCH] Check for NPTL and factor user-space skins initialization.
Date: Tue, 18 Apr 2006 17:02:44 +0200 [thread overview]
Message-ID: <4444FF94.7050209@domain.hid> (raw)
In-Reply-To: <17476.64062.107556.216362@domain.hid>
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.
next prev parent reply other threads:[~2006-04-18 15:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-18 14:39 [Xenomai-core] [PATCH] Check for NPTL and factor user-space skins initialization Gilles Chanteperdrix
2006-04-18 15:02 ` Philippe Gerum [this message]
2006-04-18 15:08 ` Gilles Chanteperdrix
2006-04-18 15:23 ` Philippe Gerum
2006-04-18 16:57 ` Gilles Chanteperdrix
2006-04-21 8:52 ` Philippe Gerum
2006-04-18 15:18 ` Jim Cromie
2006-04-18 15:46 ` Philippe Gerum
2006-04-18 17:04 ` Gilles Chanteperdrix
2006-04-18 17:44 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4444FF94.7050209@domain.hid \
--to=rpm@xenomai.org \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.