Re: Finding the interrupt vector of a given IRQ

2012-10-19 Thread Arun KS
Hi Anish, On Sat, Oct 20, 2012 at 9:38 AM, anish kumar wrote: > On Fri, 2012-10-19 at 10:34 +0530, Arun KS wrote: > > Hi Anish, > > > > On Mon, May 28, 2012 at 9:16 AM, anish singh > > wrote: > > On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger > > wrote: > > > O

Re: Finding the interrupt vector of a given IRQ

2012-10-19 Thread anish kumar
On Fri, 2012-10-19 at 10:34 +0530, Arun KS wrote: > Hi Anish, > > On Mon, May 28, 2012 at 9:16 AM, anish singh > wrote: > On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger > wrote: > > On Sun, May 27, 2012 at 2:02 AM, Mark Farnell > wrote: > >> In

Re: Finding the interrupt vector of a given IRQ

2012-10-18 Thread Arun KS
Hi Anish, On Mon, May 28, 2012 at 9:16 AM, anish singh wrote: > On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger > wrote: > > On Sun, May 27, 2012 at 2:02 AM, Mark Farnell > wrote: > >> In the kernel, how can I find out the interrupt vector number of a > >> given IRQ (for example, IRQ7)

Re: Finding the interrupt vector of a given IRQ

2012-05-29 Thread Mark Farnell
Finally got it working... First, at the kernel source, you need to go to: arch/x86/include/asm/irq_vectors.h to find out which interrupt vector your IRQ is mapped to (replace x86 with your architechure, but for this purpose, amd64 also falls into x86). Then within the kernel space (i.e. in

Re: Finding the interrupt vector of a given IRQ

2012-05-28 Thread Mulyadi Santosa
Hi.. On Mon, May 28, 2012 at 5:09 AM, Mark Farnell wrote: > This is for an assignment, where the student needs to write an > interrupt handler. > > Since the OS is run on a virtual machine,  I need to find a way to > trigger the IRQ to let the students' interrupt handler to handle the > interrupt

Re: Finding the interrupt vector of a given IRQ

2012-05-28 Thread richard -rw- weinberger
On Mon, May 28, 2012 at 12:09 AM, Mark Farnell wrote: > This is for an assignment, where the student needs to write an > interrupt handler. > > Since the OS is run on a virtual machine,  I need to find a way to > trigger the IRQ to let the students' interrupt handler to handle the > interrupt. Wh

Re: Finding the interrupt vector of a given IRQ

2012-05-27 Thread anish singh
On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger wrote: > On Sun, May 27, 2012 at 2:02 AM, Mark Farnell wrote: >> In the kernel, how can I find out the interrupt vector number of a >> given IRQ (for example, IRQ7)? >> >> Within the kernel module, I would like to manually set the IRQ using

Re: Finding the interrupt vector of a given IRQ

2012-05-27 Thread Chauhan, Himanshu
AKAIK I think is possible. For example int 3 in x86 is actually an interrupt so to say. I don't want to go in other details about exception vs interrupts and stack saving. But in short you can achieve what you are trying here. Search for breakpoint handler probably in entry.S and from the trace ba

Re: Finding the interrupt vector of a given IRQ

2012-05-27 Thread Mark Farnell
This is for an assignment, where the student needs to write an interrupt handler. Since the OS is run on a virtual machine, I need to find a way to trigger the IRQ to let the students' interrupt handler to handle the interrupt. On Mon, May 28, 2012 at 9:27 AM, richard -rw- weinberger wrote:

Re: Finding the interrupt vector of a given IRQ

2012-05-27 Thread richard -rw- weinberger
On Sun, May 27, 2012 at 2:02 AM, Mark Farnell wrote: > In the kernel, how can I find out the interrupt vector number of a > given IRQ (for example, IRQ7)? > > Within the kernel module, I would like to manually set the IRQ using > the assembly code: > > asm("int $"); > > and let the IRQ handler ins

Finding the interrupt vector of a given IRQ

2012-05-26 Thread Mark Farnell
In the kernel, how can I find out the interrupt vector number of a given IRQ (for example, IRQ7)? Within the kernel module, I would like to manually set the IRQ using the assembly code: asm("int $"); and let the IRQ handler installed by a different module catch that interrupt. Is this possible?