From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25320 invoked by alias); 10 Jul 2002 17:36:52 -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 25312 invoked from network); 10 Jul 2002 17:36:51 -0000 Received: from unknown (HELO www.jennic.com) (213.143.5.74) by sources.redhat.com with SMTP; 10 Jul 2002 17:36:51 -0000 Received: from jensun01.jennic.com (jensun01.jennic.com [99.99.98.151]) by www.jennic.com (8.9.3/8.9.3) with ESMTP id SAA17274; Wed, 10 Jul 2002 18:05:52 +0100 Received: from jenpc60 (jenpc60 [99.99.98.60]) by jensun01.jennic.com (8.9.3/8.9.3) with SMTP id SAA19195; Wed, 10 Jul 2002 18:36:49 +0100 (BST) From: "Robert Cragie" To: "Vinayak P Risbud" Cc: "Ecos-Discuss" Date: Wed, 10 Jul 2002 10:36: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 In-Reply-To: <3D2C5369.20BFB51A@multitech.co.in> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal Subject: RE: [ECOS] Interrupt Handler X-SW-Source: 2002-07/txt/msg00132.txt.bz2 The opcode 10018: ldr pc, [pc, #18] means "Load the program counter with the address at program counter + 0x18". This will load the value at 0x10038 (you need to add 8 from the start of the ldr instruction; see the ARM Reference Manual), which is 0x1037c, into the program counter. "Loading the program counter" is a synonym for "jump", so reworded this means: "Jump to the location specified at address 0x10018 + 0x8 + 0x18 (i.e. 0x10038), which is 0x1037c" As for not being able to use the serial port, you may need to enable it in the configuration. Using the configtool, try checking the box next to "Serial Device Drivers"/"Hardware Serial Devices Drivers" (i.e. setting CYGPKG_IO_SERIAL_DEVICES to TRUE) and then maybe checking the box next to "Serial Device Drivers"/"TTY-mode Serial Devices Drivers"/"TTY-mode Channel #0" (i.e. setting CYGPKG_IO_SERIAL_TTY_TTY0 to TRUE). This should include the interrupt driven serial drivers into your configuration. You may need to recreate the tree and rebuild from scratch to be on the safe side. Robert Cragie, Design Engineer Direct: +44 (0) 114 281 4512 ________________________________________________________ Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK www.jennic.com Tel: +44 (0) 114 281 2655 > -----Original Message----- > From: Vinayak P Risbud [mailto:vinayak@multitech.co.in] > Sent: 10 July 2002 16:32 > To: Robert Cragie > Cc: Ecos-Discuss > Subject: Re: [ECOS] Interrupt Handler > > > Thanks for your response. > > Can you explain, me bit clearly, why processor considers > 0x1037c as data, and not as instructrion ? > One more problem. > I am working on arm e7t board. I am not able to > communicate with serial ports through interrupts. > My console works fine, but, when I tx some char > on my port the interrupt controller says, the interrupt > is pending and the ARM7 core does not call my interrupt > handler > > Can you think of, what exactly could be the problem ? > > Thanks > Vinayak > > Robert Cragie wrote: > > > An interrupt occurs. It runs the code at 0x10018, which jumps to the > > location specified at 0x10038, which is 0x1037c (ignore the > disassembly at > > 0x10038, you are interested in the data here). 0x1037c is the > start of the > > interrupt handler, which essentially stacks the required > registers on the > > exception stack and then calls hal_IRQ_handler() at line > 0x103e0. You are > > now at 0x129ac... > > > > Robert Cragie, Design Engineer > > > > Direct: +44 (0) 114 281 4512 > > ________________________________________________________ > > Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK > > www.jennic.com Tel: +44 (0) 114 281 2655 > > > > > -----Original Message----- > > > From: ecos-discuss-owner@sources.redhat.com > > > [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Vinayak P > > > Risbud > > > Sent: 10 July 2002 15:23 > > > To: Ecos-Discuss > > > Subject: [ECOS] Interrupt Handler > > > > > > > > > Hi, > > > I have attatched my some part of redboot.elf > > > disassembled file. > > > I am not able to follow, how exactly my ISR is > > > called upon reception of an interrupt. > > > > > > What I know is, upon IRQ, the control jumps to 0x0018. > > > I am not able to follow, how exactly, my ISR which is > > > present at 0x129ac is called ? > > > > > > can any one explain me the exact flow ? > > > > > > Thanks > > > Vinayak > > > > > > > > > > > > > -- > > Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos > > and search the list archive: http://sources.redhat.com/ml/ecos-discuss > > -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss