All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore
@ 2007-08-29 14:34 Axel Beierlein
  2007-08-29 14:42 ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Axel Beierlein @ 2007-08-29 14:34 UTC (permalink / raw)
  To: Xenomai-help@domain.hid

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







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-30  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29 14:34 [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore Axel Beierlein
2007-08-29 14:42 ` 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

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.