This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Zero vector interrupts (SIVEC=0) on MPC8xxx
- From: Danny Sade <danny at channelot dot com>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 1 Sep 2009 11:20:47 +0300
- Subject: [ECOS] Zero vector interrupts (SIVEC=0) on MPC8xxx
Hi All,
Did anyone encounter zero vector interrupt (SIVEC = 0) on the MPC8xxx ? I recently encountered this kind of interrupts, and according to Freescale support and the documentation this kind of interrupt may occur during normal operation and a service routine for this interrupt must be provided.
The thing is that the current HAL implementation, at the macro hal_intc_decode at variant.inc, decodes this interrupt as a decrementer interrupt. As a result, whenever this zero vector interrupt is asserted the tick ISR is called. If the there are only few such interrupts, this is hardly noticed. But obviously, when there are many such interrupts all the time related services (such as cyg_thread_delay() ) cannot not function the way they should.
I'm not sure what is causing these zero vector interrupts. I can tell that it is related to the IDMA - whenever I have a lot of IDMA transactions, I see a lot of zero vector interrupts.
Any ideas?
Thanks
Danny
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss