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
2 answers

What happens to software interrupts in the pipeline?

After reading this: When an interrupt occurs, what happens to instructions in the pipeline? There is not much information on what happens to software interrupts but we do learn the following: Conversely, exceptions, things like page faults, mark…
Lewis Kelsey
  • 4,129
  • 1
  • 32
  • 42
4
votes
2 answers

How are branch mispredictions handled before a hardware interrupt

A hardware interrupt occurs to a particular vector (not masked), CPU checks IF flag and pushes RFLAGS, CS and RIP to the stack, meanwhile there are still instructions completing in the back end, one of these instruction's branch predictions turns…
4
votes
0 answers

Only one CPU core handling network interrupts

I developed a video streaming server in golang which receives multiple streams via a regular TCP connection and broadcasts them over HTTP. This is working on my raspberryPi cluster which I am running in docker swarm. The server is horizontally…
4
votes
4 answers

Difference between Software and Hardware Interrupts

I have recently started working on ARM Cortex Microcontrollers. While reading different articles over Internet, I usually found 2 common terms as Software Interrupt and Hardware Interrupt. What is the actual difference in both? Can you explain with…
4
votes
1 answer

openAL streaming & interruptions

I made an iphone application which uses OpenAL to play many sounds. These sounds are in mp3, quite heavy (more than 1mn)and I stream them (2 buffers per sound) in order to use less memory. To manage interruptions, I use this code : In…
Klem
  • 529
  • 1
  • 4
  • 18
4
votes
1 answer

How to disable nesting in NVIC Interrupts in ARM Cortex M0+?

I have started using ARM Cortex M0+ for GPIO Interrupts. I want to disable nesting feature from ARM Interrupts. Is there any way to do it.? I know by default, nesting is enabled in ARM, I want to disable it.
anandamu16
  • 103
  • 1
  • 2
  • 9
4
votes
2 answers

Pin Change Interrupt - External Interrupt with Internal Interrupt

Here in the program, am cycling through LEDs using timer interrupt & if someone presses a switch, it should stop the first interrupt & trigger second one that should lit the led according to the switch pressed. Here, am a little confused which…
sneezy
  • 135
  • 3
  • 12
4
votes
1 answer

Find a free interrupt slot

Some joker (BIOS/DOS/TSR...) has written random data in the Interrupt Vector Table. I know this because disassembling told me so. Ordinarily before seizing an interrupt vector, I verify that the selected IVT slot is empty. But with all this…
Sep Roland
  • 33,889
  • 7
  • 43
  • 76
4
votes
2 answers

difference between software interrupt and signal

"Software interrupts are delivered using signals" Is this always true, if not then a) what is the difference between two If yes, is there some other mechanism, by which software interrupts are raised, other than delivering signals.
Anonymous
  • 1,287
  • 6
  • 20
  • 21
4
votes
4 answers

How to wake esp8266 from deep sleep without continuous resets

I'm building an IR to wifi bridge using an esp8266. Basically I'm building an IR receiver connected to an esp8266 inside an IR remote control, to forward received IR Remote keypresses over wifi to a server. I'm using a Wemos D1 Mini. I already have…
localhost
  • 1,253
  • 4
  • 18
  • 29
4
votes
2 answers

Packet flow in bottom half

I was reading about packet flow in the receive path from NIC interrupt handler to user space. I wanted to know till which point does the newly allocated skbuff remain in bottom half context. Taking the snull_rx() code from LDD: void snull_rx(struct…
Haswell
  • 1,573
  • 1
  • 18
  • 45
4
votes
1 answer

Linux - nested interrupts

Does the Linux use nested interrupts? I mean for example when serving interrupt from any device, can be allowed further interrupts in this routine? Or it comes to top and bottom half? EDIT: If Linux uses nested interrupt, how is cared about their…
Nik Novák
  • 569
  • 1
  • 9
  • 24
4
votes
1 answer

Atomic Block for reading vs ARM SysTicks

I am currently porting my DCF77 library (you may find the source code at GitHub) from Arduino (AVR based) to Arduino Due (ARM Cortex M3). I am an absolute beginner with the ARM platform. With the AVR based Arduino I can use avr-libc to get atomic…
Udo Klein
  • 6,784
  • 1
  • 36
  • 61
4
votes
1 answer

MIPS assembly to determine whether hardware I/O interrupt has occurred?

In my MIPS32 exception handler, I want to determine whether the exception was caused by a I/O interrupt. The Cause register bits 2-6 inclusive has to be checked. What's the MIPS assembly code to determine this?
Fred
  • 41
  • 2
4
votes
2 answers

Can an x86 assembly interrupt service routine call another interrupt?

Can I call interrupt from within interrupt service routine in freestanding x686 environment? So can one do the following: isr: pusha call doSomething int 21h popa iret If it's possible, then do these nested interrupts have any…
The amateur programmer
  • 1,238
  • 3
  • 18
  • 38