From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Ignacio García Pérez" <iggarpe@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Segfault inb
Date: Wed, 6 Sep 2006 18:41:46 +0200 [thread overview]
Message-ID: <17662.64074.295816.904245@domain.hid> (raw)
In-Reply-To: <44FEF99B.5000900@domain.hid>
Ignacio García Pérez wrote:
> Hi,
>
> There must be something very obvious I'm missing, yet I don't know why
> and I'm stuck.
>
> I've got a very simple program that starts a simple periodic task that
> reads from port 0x281 at 2KHz. When the inb(0x281) is executed my
> program segfaults. If I comment that code, everything works fine (the
> periodic task executes as expected).
>
> In my initialization code, I've remembered to:
>
> iopl(3)
> mlockall(MCL_CURRENT | MCL_FUTURE)
> rt_misc_get_io_region
>
> Even tried to issue the iopl(3) again from the periodic task itself. No way.
>
> I'm using kernel 2.6.17.11 and Xenomai v2.2.2.
Do you check the return values of iopl and mlockall ?
--
Gilles Chanteperdrix.
prev parent reply other threads:[~2006-09-06 16:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-06 16:38 [Xenomai-help] Segfault inb Ignacio García Pérez
2006-09-06 16:41 ` Gilles Chanteperdrix [this message]
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=17662.64074.295816.904245@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=iggarpe@domain.hid \
--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.