Questions tagged [interrupt-handling]

The concept of handling system interrupts in an application or embedded system.

The concept of handling system interrupts in an application.

This tag may also refer to an operating-system-specific way of handling interrupts, or interrupt handling in a specific type of microcontroller or processor.

Use this tag only if you have reason to believe that your issue is directly related to interrupt handling. Do not use this tag if your application is using interrupt handling, but interrupt handling does not cause the issue your are asking about.

828 questions
3
votes
2 answers

x86 Processor clearing IDTR and jumping to EIP 0xe05b after an 'int $0x80'

I am creating an OS for the x86 processor, and have a program executing in user space (with paging enabled). Right before the program goes to make a syscall ('int $0x80'), the IDTR points to my IDT, and the entry for 0x80 points correctly to my the…
Noah
  • 1,608
  • 15
  • 31
3
votes
1 answer

Interrupt handling for assigned Device through VFIO

I'm trying to understand how Interrupt handling works for a device assigned to VM (Guest KVM) through VFIO but didn't get any clue on how it happens? Let's say, I have a device which is directly assigned(Device pass-through) to Guest VM through VFIO…
Amit Singh Tomar
  • 8,380
  • 27
  • 120
  • 199
3
votes
3 answers

Is there a difference between an ISR and an interrupt handler?

I'm studying operating systems and I encountered both the terms ISR and interrupt handler. Are they two words for the same mechanism? If not, what is the difference?
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
3
votes
3 answers

What is this concept of Pending Interrupts

I am unable to fathom the term Pending Interrupts. I mean, the way I see asynchronous events is like "Time, tide and Interrupts" wait for none. Then what is this pending interrupts. How can I service a request that has come in the past, which has…
RootPhoenix
  • 1,626
  • 1
  • 22
  • 40
3
votes
1 answer

What is the difference between trap handler , interrupt dispatch routine and interrupt service routine (ISR)?

I am confused between above mentioned concepts while reading Windows internals.
rpk
  • 70
  • 9
3
votes
0 answers

joining a thread with any argument causes it to recognize keyboard interrupts

As has been noted several times, calling Thread.join() with no argument will wait until the thread finishes before throwing a KeyboardInterrupt. What I find curious is that if you provide any argument at all, then join will exit immediately when…
dspyz
  • 5,280
  • 2
  • 25
  • 63
3
votes
1 answer

Connection pooling and Thread.interrupt()

I am using c3p0 to handle database connection pooling in a multithreaded environment. The question might pertain to other pooling libs, but this is what I have. Recently I've needed to implement interruption handling on such threads using directly…
3
votes
2 answers

Context switching in function vs interrupt call?

I understand the basic difference between function call & interrupt (ISR) jump from below SE question. difference between function call & ISR But I am still not clear about, what are the registers will be pushed /pop to/from stack in both the cases?…
kapilddit
  • 1,729
  • 4
  • 26
  • 51
3
votes
2 answers

ARM: Is LDRX/STRX needed if interrupts are disabled?

I am working with a multithreaded bare-metal C/Assembler application on a Cortex-A9. I have some shared variables, i.e. adresses that are used from more than one thread. To perform an atomic exchange of a variables value I use LDRX and STRX. Now my…
user3035952
  • 301
  • 5
  • 12
3
votes
3 answers

Interrupts, Instruction Pointer, and Instruction Queue in 8086

Suppose an external interrupt request is made to 8086. Processor will handle the interrupt after completing the current instruction being executed (if any). Before handling of the interrupt, the state of the program will also be saved (PSW flag,…
Patt Mehta
  • 4,110
  • 1
  • 23
  • 47
3
votes
1 answer

STM32F207 I2C test failing

I am learning embedded development on the STM3220G-EVAL board with the STM32F207 microcontroller. I have tried to test the I2C interface by interfacing the two I2C2 and I2C3 modules on the same chip and sending/receiving a character. Here is the…
hl2gordon
  • 71
  • 1
  • 7
3
votes
0 answers

FreeRTOS & PIC24EP & Correct interrupt handling

I've been using FreeRTOS for a while now on my project and I have to say I love it. Tough i'm facing a bug which is killing me. My code contains a large amount of code, about 80 files and use several microchip stack and run about 10 tasks. The…
Damien
  • 1,492
  • 10
  • 32
3
votes
0 answers

How to do embarrassingly parallel computation until user interrupts and delay the interrupt handling until all threads finish the iteration?

...or put another way: How to make a parallel computation using third-party functions (e.g. plyr) until user interrupts, and delay the interrupt handling so I can notify the working threads to stop execution after the current iteration? I do some…
Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
3
votes
0 answers

How to give priorities to Interrupt handlers in a normal linux kernel?

I am working on precise time stamping of packets being captured from a network. An interrupt is generated at every packet reception. Thus an interrupt handler registered by the Ethernet driver queues the captured packets. I have 2 questions Who…
3
votes
0 answers

How to register PMI handler?

I'm trying to register an interrupt handler for the performance monitoring interrupt (PMI). I was hoping I could just find the IRQ line number by looking in /proc/interrupts grep PMI /proc/interrupts but when I try to register that irq using…
Alfredo Gimenez
  • 2,174
  • 1
  • 14
  • 19