From: "Axel Beierlein" <belatronix@domain.hid>
To: "Xenomai-help@domain.hid" <Xenomai-help@domain.hid>
Subject: [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore
Date: Wed, 29 Aug 2007 16:34:39 +0200 [thread overview]
Message-ID: <op.txtr31btt06gyn@domain.hid> (raw)
what could it be that an simple rt_dev_open locks up my system when it
calls rtdm_lock_put_irqrestore?
[...]
if (rtdm_irq_request(&ctx->irq_handle,
MPC5xxx_PSC2_IRQ,
rt_psc_interrupt,
RTDM_IRQTYPE_SHARED | RTDM_IRQTYPE_EDGE,
context->device->proc_name,
ctx))
{
printk ("psc5200B.c: request_irq() failed\n");
return -1;
}
rtdm_irq_enable(&ctx->irq_handle);
rtdm_lock_get_irqsave(&ctx->lock, lock_ctx);
ctx->imr_status = MPC5xxx_PSC_IMR_RXRDY;
out_be16(&psc->mpc5xxx_psc_imr, ctx->imr_status);
rtdm_lock_put_irqrestore(&ctx->lock, lock_ctx);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here i get the crash
The test prog is a simple
fd=rt_dev_open("nameofdevice",0)......rt_dev_close(fd).
Axel
next reply other threads:[~2007-08-29 14:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 14:34 Axel Beierlein [this message]
2007-08-29 14:42 ` [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore Jan Kiszka
[not found] ` <op.txuzl2o9t06gyn@domain.hid>
2007-08-30 6:55 ` Jan Kiszka
2007-08-30 8:36 ` Axel Beierlein
2007-08-30 8:58 ` Jan Kiszka
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=op.txtr31btt06gyn@domain.hid \
--to=belatronix@domain.hid \
--cc=Xenomai-help@domain.hid \
/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.