This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: LPC2xxx patch for support of vectored interrupt controller
- From: cetoni GmbH - Uwe Kindler <uwe dot kindler at cetoni dot de>
- To: Hans Rosenfeld <rosenfeld at grumpf dot hope-2000 dot org>
- Cc: ecos-patches at sourceware dot org
- Date: Mon, 20 Aug 2007 07:50:55 +0200
- Subject: Re: LPC2xxx patch for support of vectored interrupt controller
- Organization: cetoni GmbH
- References: <21907044.603801184047861289.JavaMail.servlet@kundenserver> <20070817140209.GA26081@grumpf.hope-2000.org> <20070817171322.GB26081@grumpf.hope-2000.org>
Hello Hans,
I have to admit that I did not care about drivers that use interrupt
priority 0 when I created the support for VIC controller in LPC2xxx
variant. In current VIC support I decided to use 16 as the priority of
the interrupts that do not use VIC - this is the formerly behaviour of
the LPC2xxx interrupt support and of interrupts that use priority 0.
Another solution for this problem would be to invert interrupt
priorities. That means interrupt priority 0 is the lowest interrupt
priority and interrupt 16 is the highest priority. So if the drivers use
interrupt level 0 they would fall back to the old (slower) interrupt
handling. But that would not fix the test case that creates 2 interrupts
of level 1.
I think your solution is cleaner - thank you for creating this patch
Best Regards,
Uwe
Dipl. Inf. (FH)
Uwe Kindler
Software Engineering
--
cetoni GmbH
Am Wiesenring 6
D-07554 Korbussen
Tel.: +49 (0) 36602 338 28
Fax: +49 (0) 36602 338 11
uwe.kindler@cetoni.de
http://www.cetoni.de