From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18332 invoked by alias); 22 Aug 2007 09:53:17 -0000 Received: (qmail 18086 invoked by uid 22791); 22 Aug 2007 09:53:16 -0000 X-Spam-Check-By: sourceware.org Received: from quina.moeckel.org (HELO quina.moeckel.org) (217.160.223.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Aug 2007 09:53:14 +0000 Received: from bluebird.headcrashers.bnfh (bluebird.headcrashers.org [IPv6:2001:8d8:81:a11:204:acff:fe97:190]) (authenticated bits=0) by quina.moeckel.org (8.13.8/8.13.8/Debian-3) with ESMTP id l7M9r7ix005033 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 22 Aug 2007 11:53:08 +0200 Received: from executor.headcrashers.bnfh (IDENT:root@executor.headcrashers.bnfh [IPv6:2001:8d8:81:a11:209:6bff:fee0:8244]) by bluebird.headcrashers.bnfh (8.13.8/8.13.8) with ESMTP id l7M9r6kG025162; Wed, 22 Aug 2007 11:53:06 +0200 Received: from executor.headcrashers.bnfh (IDENT:woodstoc@localhost [127.0.0.1]) by executor.headcrashers.bnfh (8.13.8/8.13.8) with ESMTP id l7M9qTHF002351; Wed, 22 Aug 2007 11:52:29 +0200 (CEST) Received: (from woodstoc@localhost) by executor.headcrashers.bnfh (8.13.8/8.13.8/Submit) id l7M9qSSn002731; Wed, 22 Aug 2007 11:52:28 +0200 (CEST) Date: Wed, 22 Aug 2007 09:53:00 -0000 From: Hans Rosenfeld To: Andrew Lunn Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070822095228.GD2126@grumpf.hope-2000.org> References: <21907044.603801184047861289.JavaMail.servlet@kundenserver> <20070817140209.GA26081@grumpf.hope-2000.org> <20070817171322.GB26081@grumpf.hope-2000.org> <20070820151336.GA1125@grumpf.hope-2000.org> <20070822082451.GF31057@lunn.ch> <20070822084026.GA2126@grumpf.hope-2000.org> <20070822091803.GH31057@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070822091803.GH31057@lunn.ch> User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: LPC2xxx patch for support of vectored interrupt controller X-SW-Source: 2007-08/txt/msg00107.txt.bz2 On Wed, Aug 22, 2007 at 11:18:03AM +0200, Andrew Lunn wrote: > I think much better way to do this is: > > cdl_option CYGNUM_KERNEL_INTR_TEST_PRIO_A { > display "interrupt priority used by intr0/kintr0 test" > flavor data > default_value 0 > legal_values 0 to 16 > description "The intr0 and kintr0 tests create several interrupts. > This option selects the interrupt priority to be used > for these interrupts." > } > > cdl_option CYGNUM_KERNEL_INTR_TEST_PRIO_B { > display "interrupt priority used by intr0/kintr0 test" > flavor data > default_value 1 > legal_values 0 to 16 > description "The intr0 and kintr0 tests create several interrupts. > This option selects the interrupt priority to be used > for these interrupts." > } > > and then in the LPC2XXX hal statements like > > requires { is_active(CYGNUM_KERNEL_INTR_TEST_PRIO_A) > implies { CYGNUM_KERNEL_INTR_TEST_PRIO_A == 16 } } > > requires { is_active(CYGNUM_KERNEL_INTR_TEST_PRIO_B) > implies { CYGNUM_KERNEL_INTR_TEST_PRIO_B == 16 } } > > It makes the test more flexible. You can how for example use vectors 5 > and 15 which was not possible before. Looks good, but I'm unsure about PRIO_A and PRIO_B vs. PRIO_0 and PRIO_1. I used PRIO_0 where the test used a hardcoded 0, and PRIO_1 where test used a hardcoded 1 (twice). How will PRIO_A and PRIO_B map to this? -- %SYSTEM-F-ANARCHISM, The operating system has been overthrown -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss