From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 29 Aug 2007 16:34:39 +0200 From: "Axel Beierlein" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: Subject: [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 =3D 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=3Drt_dev_open("nameofdevice",0)......rt_dev_close(fd). Axel