This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Lock in Cyg_Interrupt::call_pending_DSRs_inner
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: David Hsu <davidhsu at realtek dot com dot tw>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 01 Feb 2002 17:29:51 +0000
- Subject: Re: [ECOS] Lock in Cyg_Interrupt::call_pending_DSRs_inner
- Organization: Red Hat UK Ltd.
- References: <MDEDKIDHDCFJNIMOJHIPGEKLCBAA.davidhsu@realtek.com.tw>
David Hsu wrote:
>
> Hi Jonathan,
>
> Thanks your reply, but it seemed not much helps in my case. When I used diag_printf() to print out some debug message continuously (either in DSR or in a idle thread), the pending scenario will not happen. Following is the synchronization mechanism between my ISR, DSR, and thread, please look it and see any place might cause the problem.
[snip]
Looks fine to me in principle. Sounds like it may be a HAL or hardware
issue that interrupts are being left disabled. diag_printf disables and
re-enables interrupts, so that's maybe what starts it working again.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine