LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 10-18-2012, 09:49 AM   #1
Rajkamal
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
ISR mapping, Kernel IRQ to Real Processor IRQ


ISR Mapping to a particular device through Linux Kernel?



For example:

I had request for a interrupt for some special device(i.e sysconfig interrupt as in OMAP L138), Let say i had requestd irq number 39 and consider i had also done handler function for that. My question here is whenever the sysconfig interrupt came, program counter will automatically jump to the -[sysconfig interrupt vector address] how far configuring irq line 39 can catch this interrupt and map the ISR of it to the sysconfig interrupt vector address.
 
Old 10-24-2012, 08:28 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,377

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
On most systems, IRQ lines are shared. In any case, the interrupt architecture of various computer systems / motherboards is one of the biggest areas of difference that you will find. The kernel is designed, to some degree, to abstract-away a little bit of that nonsense, but it's still there.

You need either to know or to configure which hardware interrupt your device is going to throw, so that you can attach your first-level handler to the appropriate chain, then your handler must still poll the hardware to find out whether, in fact, your device is actually the one that's talking. (Think of it like the old telephone "party lines.")

Let the kernel do the dirty-work of passing control to your handler, since it might be a different mechanism for different hardware types. Also don't be concerned about precisely how your CPU-type deals with interruptions. Let the kernel give you the opportunity to respond, however it wants to do that.

Last edited by sundialsvcs; 10-24-2012 at 08:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UNIQ IRQ and Shared IRQ...I want to make Shared IRQ routin chxooi Linux - Hardware 1 06-12-2010 07:30 AM
Obtain the real IRQ number for a PCI device Elliott-t Linux - Kernel 2 09-24-2006 09:05 PM
SCSI Errors when IRQ Shared - How do I not share IRQ MQMan Linux - Hardware 2 01-08-2006 11:42 PM
Graphics card and processor IRQ conflict Decalore Linux - Newbie 2 04-01-2005 04:26 AM


All times are GMT -5. The time now is 09:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration