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
4
votes
0 answers

Handling interruptions in an iOS app

I'm having a hard time handling interruptions in my OpenGL ES 2.0 iOS app. This really pertains to OpenAL, which I think I know how to handle, but the issue is that my interrupt handler never ends up being called. I've tried registering for…
sikk.mu
  • 41
  • 2
4
votes
1 answer

What are legacy interrupts?

I am working on a project where i am trying to figure out how an interrupt is processed in the Global interrupt controller for a ARM architecture. I am working with pl390 interrupt controller. I see there is a line which is mentioned as legacy…
Nuetrino
  • 1,099
  • 1
  • 14
  • 32
4
votes
1 answer

how to do debug an interrupt handler

I am doing one assignment where I have to write and interrupt handler for Keyboard. So in this assignment we have to log the key stroke so it is allowed to do File I/O and we are using Work queue for that. I know it is not allowed to sleep in…
4
votes
4 answers

When to use thread.interrupt() and when to throws InterruptedException

I have some experience of using the Java interrupt mechanism to fullfill my work, but currently I am not that clear about when should I set the interrupt status of the current thread and when should I throws InterruptedException? And, in order to…
Vic Lau
  • 173
  • 2
  • 8
4
votes
6 answers

Java Hardware Interrupt Handling

I would like to know if it is possible to automatically invoke a Java method when a hardware interrupt is raised.
4
votes
2 answers

a custom interrupt handler for mpirun

Apparently, mpirun uses a SIGINT handler which "forwards" the SIGINT signal to each of the processes it spawned. This means you can write an interrupt handler for your mpi-enabled code, execute mpirun -np 3 my-mpi-enabled-executable and then SIGINT…
Ammar
  • 573
  • 1
  • 4
  • 14
4
votes
1 answer

Enabling Interrupts in U-boot for ARM cortex A-9

I am trying to configure a GPIO interrupt in the uboot, This it to test the Interrupt response time without any OS intervention (Bare-metal). I was able to configure the pin-muxing and also successful in setting up the interrupt with the GPIO pin.…
Nuetrino
  • 1,099
  • 1
  • 14
  • 32
4
votes
1 answer

How do MIPS exceptions and interrupts work?

I am working on a MIPS32 like CPU and I am wondering how the MIPS32 exception and interrupt handling works exactly. The MIPS32 Privileged Resource Architecture guide doesn't give much information. I am wondering about several things which are: What…
Alex
  • 125
  • 2
  • 7
4
votes
1 answer

Why isn't my interrupt handler firing?

I'm trying to install an interrupt handler in Bochs, but for some reason my interrupt handler isn't firing. First I set a breakpoint: 00036440222i[CPU0 ] [36440222] Stopped on MAGIC BREAKPOINT (0) [0x0000000000703044] 0008:00000000c0003044 (unk.…
user541686
  • 205,094
  • 128
  • 528
  • 886
4
votes
2 answers

Custom keyboard interrupt handler

I'm trying to write a simple program that will replace standard keyboard interrupt with a custom one that will decrement a variable. However, it won't work without a call to the old handler. Here is my interrupt handler: handler proc push ax …
Filipp
  • 859
  • 1
  • 6
  • 20
3
votes
1 answer

Why can't I handle NMI?

I want to handle NMI and do something when NMI occur. Firstly I write a naive nmi handler: static irqreturn_t nmi_handler(int irq, void* dev_id) { printk("-#_#- I'm TT, I am handling NMI.\n"); return IRQ_HANDLED; } And write a module to…
silverbullettt
  • 846
  • 1
  • 10
  • 13
3
votes
3 answers

Strange behavior from interrupt service routine

I'm writing an interrupt service routine which is supposed to process interrupts caused by RTC using int 70h and IRQ8 for use with some timer. Unfortunately, I've been having lots of problems with that, so I decided to separate the issue into…
AndrejaKo
  • 1,721
  • 5
  • 25
  • 41
3
votes
3 answers

Why does memory-barrier prohibit optimization on static global variable?

The following code contains an interrupt-service-routine and a normal function func(), which uses the global flag and additionally the static global g. Without any memory-barrier this code is faulty, since flag is modified…
wimalopaan
  • 4,838
  • 1
  • 21
  • 39
3
votes
2 answers

Custom Interrupt Descriptor Table Confusion

I'm writing a small OS that runs under protected mode. I am coming to a point where I want to load a custom interrupt descriptor table, and I don't know where to start. I have read some stuff on the OS Dev wiki, but there are a few questions that…
Alex Nichol
  • 7,512
  • 4
  • 32
  • 30
3
votes
5 answers

Accessing class members inside an interrupt handler

I have a UART class that has instances of Fifo class (just a rough idea as of now), but if I do that, and have an interrupt handler in a source file, there wouldn't be a way for me to access a Fifo instance or any other Uart members. //…
Jazzy
  • 324
  • 4
  • 15