From mboxrd@z Thu Jan 1 00:00:00 1970 From: narkewoody@gmail.com (Woody Wu) Date: Fri, 21 Dec 2012 08:37:22 +0800 Subject: How kernel handle interrupts In-Reply-To: References: <20121220142745.GB3578@zuhnb712> Message-ID: <20121221003722.GA9702@zuhnb712> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Dec 20, 2012 at 07:16:34PM +0100, Shahbaz khan wrote: > Hi Woody, > > Check "do_IRQ()" in arch/x86/kernel/irq.c. It is responsible to handle > device specific interrupts, while ipi and timer interrupts are dealt > elsewhere. > Thanks. Maybe you also know what's the name of the same function for ARM, which is actual arch I am working on. > Hope this helps. > > BR, > Shahbaz Khan > > On Thu, Dec 20, 2012 at 3:27 PM, Woody Wu wrote: > > > Hi, List > > > > Where is the Kernel code that handles external interrupts? I want to > > have a look at it but haven't found out where it is. > > > > Actually, I have some basic questions about interrupt handling in Linux. > > 1. After Kernel's ISR received an interrupt, I believe it will invoke a > > handler defined in a device driver if any. But it should be the > > device driver's responsibility or kernel ISR's responsibility to > > clear (or acknowledge) the interrupt? > > > > 2. My device, an AX88796B network controller, asserting the interrupt > > line in a level-triggered manner. Now I met problem with the device that > > might caused by the CPU interrupt mode is not set as level-triggered by > > edge trigger. My CPU is Samsung S3C2410, an ARM920T powered one. Does > > anyone know usually where and how should I do this kind of setting? > > > > > > Thanks in advance. > > > > -- > > woody > > I can't go back to yesterday - because I was a different person then. > > > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > > > -- > Shahbaz Khan -- woody I can't go back to yesterday - because I was a different person then.