From: "Nicolas BLANCHARD" <n.blanchard@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] I/O privilege losted and killed message
Date: Wed, 06 Dec 2006 15:39:42 +0100 [thread overview]
Message-ID: <s577092a.032@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]
Hello,
Sometime i lose my i/o privilege put with the system call ioperm (in
the main function of my program).
My application stop with a "killed" message in the console and in
/proc/xenomai/fault i've an "general fault".
To ignore this problem, i use the call system iopl (with full
privilege) or recall ioperm before each inb or outb.
But there is a problem, why i/o privilege are losted ?
In attachment you can find an archive with an example (application and
source) witch show the problem.
This program has 2 task :
- task_1 priority 23 period 100 ms, lock a mutex, access to /dev/rtc,
unlock the mutex, outb on hardware.
- task 2 priority 25 period 1 ms, do nothing !
I put a 1 ms period to task_2 because it's near the speedest period on
my cpu (166 MHz).
With this period it stop immediatly.
If i put 10 ms it's need 1 or 2 minutes.
On my Pentium 4 (Ubuntu on VmWare worstation under WindowsXP), i put 30
ms (the more speed before overrun).
If i use iopl (and not ioperm), no problem.
If i just have task_1, no problem.
If i don't use mutex (lock for Rtc access) on task_2, no problem.
I use Xenomai Xenomai 2.3-rc2 (adeos 1.5-02), same probleme with
2.2.3.
If you have an idea.
thanks
nicolas blanchard
[-- Attachment #2: xeno-Nico_04.tar.gz --]
[-- Type: application/octet-stream, Size: 6942 bytes --]
next reply other threads:[~2006-12-06 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 14:39 Nicolas BLANCHARD [this message]
2006-12-07 14:09 ` [Xenomai-help] I/O privilege losted and killed message Jan Kiszka
2006-12-08 14:34 ` Jan Kiszka
2006-12-08 18:44 ` Philippe Gerum
2006-12-08 15:45 ` Maksym Veremeyenko
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=s577092a.032@domain.hid \
--to=n.blanchard@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.