From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15287 invoked by alias); 22 Aug 2007 13:47:42 -0000 Received: (qmail 15049 invoked by uid 22791); 22 Aug 2007 13:47:39 -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 13:47:32 +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 l7MDlGWB006831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 22 Aug 2007 15:47:17 +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 l7MDlFS5024230; Wed, 22 Aug 2007 15:47:15 +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 l7MDkkBT015535; Wed, 22 Aug 2007 15:46:46 +0200 (CEST) Received: (from woodstoc@localhost) by executor.headcrashers.bnfh (8.13.8/8.13.8/Submit) id l7MDkkvO003755; Wed, 22 Aug 2007 15:46:46 +0200 (CEST) Date: Wed, 22 Aug 2007 13:47:00 -0000 From: Hans Rosenfeld To: Andrew Lunn Cc: ecos-discuss@ecos.sourceware.org, ecos-patches@ecos.sourceware.org Message-ID: <20070822134646.GA16442@grumpf.hope-2000.org> References: <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> <20070822095228.GD2126@grumpf.hope-2000.org> <20070822100626.GJ31057@lunn.ch> <20070822105132.GF2126@grumpf.hope-2000.org> <20070822111216.GL31057@lunn.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20070822111216.GL31057@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: Re: [ECOS] Re: LPC2xxx patch for support of vectored interrupt controller X-SW-Source: 2007-08/txt/msg00113.txt.bz2 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 262 On Wed, Aug 22, 2007 at 01:12:16PM +0200, Andrew Lunn wrote: > Could your produce a patch which contains all these changes and a > ChangeLog entry in both the Kernel package and the HAL. Done. -- %SYSTEM-F-ANARCHISM, The operating system has been overthrown --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="priorities-kernel.diff" Content-length: 5375 Index: ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/var/current/ChangeLog,v retrieving revision 1.7 diff -u -r1.7 ChangeLog --- ChangeLog 30 Jul 2007 18:09:47 -0000 1.7 +++ ChangeLog 22 Aug 2007 13:34:11 -0000 @@ -1,3 +1,13 @@ +2007-08-22 Hans Rosenfeld + + * cdl/hal_arm_lpc2xxx.cdl: require interrupt priority 16 for + kernel test intr0/kintr0 interrupts + 2007-08-17 Hans Rosenfeld * cdl/hal_arm_lpc2xxx.cdl: added VIC component to support configuration of individual interrupt priorities 2007_07-10 Uwe Kindler * cdl/hal_arm_lpc2xxx.cdl: Added option Index: hal_arm_lpc2xxx.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/arm/lpc2xxx/var/current/cdl/hal_arm_lpc2xxx.cdl,v retrieving revision 1.4 diff -u -r1.4 hal_arm_lpc2xxx.cdl --- hal_arm_lpc2xxx.cdl 30 Jul 2007 18:09:47 -0000 1.4 +++ hal_arm_lpc2xxx.cdl 22 Aug 2007 13:37:42 -0000 @@ -66,6 +66,15 @@ implements CYGINT_HAL_ARM_ARCH_ARM7 implements CYGINT_HAL_ARM_THUMB_ARCH + 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 } + + requires { is_active(CYGNUM_KERNEL_INTR_TEST_PRIO_C) + implies CYGNUM_KERNEL_INTR_TEST_PRIO_C == 16 } + # Let the architectural HAL see this variant's files define_proc { puts $::cdl_header "#define CYGBLD_HAL_VAR_INTS_H " Index: ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/kernel/current/ChangeLog,v retrieving revision 1.143 diff -u -r1.143 ChangeLog --- ChangeLog 2 Jul 2007 11:49:09 -0000 1.143 +++ ChangeLog 22 Aug 2007 13:39:40 -0000 @@ -1,3 +1,8 @@ +2007-08-22 Hans Rosenfeld + + * cdl/kernel.cdl, tests/intr0.cxx, tests/kintr0.c: added options + to configure priorities of the interrupts created by intr0 and kintr0 + 2007-07-02 Gary Thomas * src/debug/dbg_gdb.cxx: Index: intr0.cxx =================================================================== RCS file: /cvs/ecos/ecos/packages/kernel/current/tests/intr0.cxx,v retrieving revision 1.13 diff -u -r1.13 intr0.cxx --- intr0.cxx 11 Aug 2006 09:29:31 -0000 1.13 +++ intr0.cxx 22 Aug 2007 13:40:08 -0000 @@ -97,7 +97,9 @@ static bool flash( void ) { - Cyg_Interrupt intr0 = Cyg_Interrupt(CYGNUM_HAL_ISR_MIN, 0, (CYG_ADDRWORD)333, isr0, dsr0 ); + Cyg_Interrupt intr0 = Cyg_Interrupt(CYGNUM_HAL_ISR_MIN, + CYGNUM_KERNEL_INTR_TEST_PRIO_A, + (CYG_ADDRWORD)333, isr0, dsr0 ); return true; } @@ -134,13 +136,15 @@ HAL_INTERRUPT_IN_USE( lvl1, in_use ); Cyg_Interrupt* intr0 = NULL; if (!in_use) - intr0 = new((void *)&intr0_obj[0]) Cyg_Interrupt( lvl1, 1, (CYG_ADDRWORD)777, isr0, dsr0 ); + intr0 = new((void *)&intr0_obj[0]) Cyg_Interrupt( lvl1, CYGNUM_KERNEL_INTR_TEST_PRIO_B, + (CYG_ADDRWORD)777, isr0, dsr0 ); cyg_vector lvl2 = CYGNUM_HAL_ISR_MIN + ( 15 % CYGNUM_HAL_ISR_COUNT); HAL_INTERRUPT_IN_USE( lvl2, in_use ); Cyg_Interrupt* intr1 = NULL; if (!in_use && lvl1 != lvl2) - intr1 = new((void *)&intr1_obj[0]) Cyg_Interrupt( lvl2, 1, 888, isr1, dsr1 ); + intr1 = new((void *)&intr1_obj[0]) Cyg_Interrupt( lvl2, CYGNUM_KERNEL_INTR_TEST_PRIO_C, + 888, isr1, dsr1 ); // Check these functions at least exist Cyg_Interrupt::disable_interrupts(); Index: kintr0.c =================================================================== RCS file: /cvs/ecos/ecos/packages/kernel/current/tests/kintr0.c,v retrieving revision 1.12 diff -u -r1.12 kintr0.c --- kintr0.c 11 Aug 2006 09:29:31 -0000 1.12 +++ kintr0.c 22 Aug 2007 13:40:44 -0000 @@ -103,8 +103,8 @@ cyg_handle_t handle; cyg_interrupt intr; - cyg_interrupt_create(CYGNUM_HAL_ISR_MIN, 0, (cyg_addrword_t)333, - isr0, dsr0, &handle, &intr ); + cyg_interrupt_create(CYGNUM_HAL_ISR_MIN, CYGNUM_KERNEL_INTR_TEST_PRIO_A, + (cyg_addrword_t)333, isr0, dsr0, &handle, &intr ); cyg_interrupt_delete(handle); return true; @@ -156,13 +156,14 @@ HAL_INTERRUPT_IN_USE( lvl1, in_use ); intr0 = 0; if (!in_use) - cyg_interrupt_create(lvl1, 1, (cyg_addrword_t)777, isr0, dsr0, - &intr0, &intr_obj[0]); + cyg_interrupt_create(lvl1, CYGNUM_KERNEL_INTR_TEST_PRIO_B, + (cyg_addrword_t)777, isr0, dsr0, &intr0, &intr_obj[0]); HAL_INTERRUPT_IN_USE( lvl2, in_use ); intr1 = 0; if (!in_use && lvl1 != lvl2) - cyg_interrupt_create(lvl2, 1, 888, isr1, dsr1, &intr1, &intr_obj[1]); + cyg_interrupt_create(lvl2, CYGNUM_KERNEL_INTR_TEST_PRIO_C, + 888, isr1, dsr1, &intr1, &intr_obj[1]); // Check these functions at least exist --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss --9jxsPFA5p3P2qPhR--