From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19438 invoked by alias); 20 Nov 2003 15:01:55 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 19431 invoked from network); 20 Nov 2003 15:01:54 -0000 Received: from unknown (HELO mail.dynazign.com) (66.0.244.3) by sources.redhat.com with SMTP; 20 Nov 2003 15:01:54 -0000 Received: from aaronc [66.0.244.2] by mail.dynazign.com with ESMTP (SMTPD32-7.07) id A4BC105004C; Thu, 20 Nov 2003 09:50:36 -0500 From: "Aaron Case" To: "Gary Thomas" Cc: "Ecos-Discuss" Date: Thu, 20 Nov 2003 15:01:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal In-Reply-To: <1069338915.1961.651.camel@hermes> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: RE: [ECOS] context for creating interrupts on edb7312 X-SW-Source: 2003-11/txt/msg00274.txt.bz2 > It happens automatically in "cyg_start()", so my test runs just as well > even if I make this change: > > Index: hal/powerpc/mpc8xxx/current/tests/mpc8xxx_timer.c > =================================================================== > RCS file: > /home/gthomas/my_cvs/develop/ecos/packages/hal/powerpc/mpc8xxx/cur > rent/tests/mpc8xxx_timer.c,v > retrieving revision 1.1 > diff -u -5 -p -r1.1 mpc8xxx_timer.c > --- hal/powerpc/mpc8xxx/current/tests/mpc8xxx_timer.c 20 Nov 2003 > 14:21:54 -0000 1.1 > +++ hal/powerpc/mpc8xxx/current/tests/mpc8xxx_timer.c 20 Nov 2003 > 14:29:39 -0000 > @@ -149,12 +149,12 @@ cyg_user_start( void ) > IMM->cpm_timers_trr1 = 0x2000; // Reference value > IMM->cpm_timers_tcn1 = 0; > IMM->cpm_timers_ter[0] = 0xFF; > IMM->cpm_timers_tgcr1 = _TC_TGCR_RST1; // Reset & enable timer1 > > - cyg_scheduler_start(); > - CYG_TEST_PASS("mpc8xxx_timer"); > +// cyg_scheduler_start(); > +// CYG_TEST_PASS("mpc8xxx_timer"); > } > > // > ------------------------------------------------------------------------- > > #else // ! CYGPKG_KERNEL > > Are you overriding "cyg_start()"? That's the place that the scheduler > is normally started (although many of our tests do it explicitly) > > -- > Gary Thomas > MLB Associates > > Thanks for the clarification. I believe this may be my last question on the matter. Is it possible to enable interrupts with cyg_interrupt_enable(), before the task scheduler starts, supposing I were foolish enough to do such a thing? It appears that cyg_interrupt_enable() acts directly on the CPSR in ARM(after viewing the ASM), but my MAJIC debugger tells me that the CPSR doesn't change unless the scheduler is started. So what in eCos blocks access to the interrupt bits in the CPSR when the scheduler is not running? Thanks, Aaron Case -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss