From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16687 invoked by alias); 19 Nov 2003 16:34:26 -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 16678 invoked from network); 19 Nov 2003 16:34:25 -0000 Received: from unknown (HELO mail.dynazign.com) (66.0.244.3) by sources.redhat.com with SMTP; 19 Nov 2003 16:34:25 -0000 Received: from aaronc [66.0.244.2] by mail.dynazign.com with ESMTP (SMTPD32-7.07) id A900DFD0084; Wed, 19 Nov 2003 11:23:28 -0500 From: "Aaron Case" To: "Ecos-Discuss" Date: Wed, 19 Nov 2003 16:34: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 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: [ECOS] context for creating interrupts on edb7312 X-SW-Source: 2003-11/txt/msg00247.txt.bz2 Hello, My question pertains to the context for which an interrupt would be created and attached. The Massa text shows an example where an interrupt is created, attached, and unmasked in cyg_user_start(), see code listing 3.2. Yet 3 pages later, see Item list 3.7, it gives thread(and not init as in the code listing) as the only viable context for creating a interrupt(via cyg_interrupt_create). This seems to be in conflict. Intuitively, creation of interrupts would be in cyg_user_start, init context, like the code listing example BUT, I was never able to get this to work. I have however been able to get work in the thread context, which agrees with the item list but seems counter intuitive. The eCos reference manual confirms my intuition by stating the following in the valid context section of the ref manual... "In a typical configuration interrupt handlers are created and attached during system initialization, and never detached or deleted. However it is possible to perform these operations at thread level, if desired..." I, however, have not be able to get interrupts to work in the init context, only in the thread context. ------Is creating interrupts within the init context possible?------- I am using the EDB7312 processor with the arm720t core. I would prefer to locate all interrupt creation and configuration in cyg_user_start, the init context, but have had little success in doing so. I would also like to add, Im not criticizing the online docs, they appear correct, just a bit generic(so as to apply to all platforms, I assume). Aaron Case Firmware Engineer Dynazign, Inc. Charlotte, NC -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss