4,700 questions
3
votes
0
answers
47
views
After enabling an interrupt via CSRRW in RISC-V, how many instructions may execute before trap entry?
In RISC-V machine mode, when you issue a csrrw that sets a bit in mie (i.e. enabling an interrupt that is already pending), must the very next instruction immediately branch to the interrupt handler? ...
-1
votes
0
answers
60
views
How can I reference an inline C function through ARM ASM?
I'm programming an ARM Cortex-M4 chip (nRF52840) bare metal. For my interrupts, I want to determine the event which triggered the IRQ in assembly, then move to C. I want to avoid branching, though, ...
0
votes
1
answer
53
views
STM32F4 ADC Multi-Channel Interrupt Logical Error
I am trying to use interrupts with the ADC module. I am using PA0 and PA1 as analog inputs for the ADC, and PC0 and PC1 as external LEDs. My goal is: when PA0 is triggered, PC0 should turn on. when ...
0
votes
0
answers
61
views
Is there a way to tell TI ARM Clang not to use R14 (LR) as a scratch register?
I have a program that I wrote that has interrupts of multiple priorities. Within the body of the low priority ISR, interrupts are re-enabled so that high priority interrupts can interrupt them if ...
0
votes
0
answers
36
views
Multiple Next.js Apps - ISR approach
Question regarding ISRs in Next.JS apps.
Basically if we got 2 Next.js apps. 1 app do ISR and output to a storage, and 2nd app refer to App 1 output. Is this possible - 2 apps sharing a single ISR ...
0
votes
1
answer
71
views
How to write userspace or kernel application that would allow me to generate a lot of asynchronous interrupts on x86_64 Linux?
I am studying a performance (progress guarantee?) problem of an x86 hypervisor software. The current hypothesis is like this. There is a high intensity of interrupt requests caused by concurrently ...
3
votes
2
answers
108
views
How to detect the slave PIC in an old PC using assembly?
I am modifying the source code of a driver for an ISA card that uses IRQ2. The case, as we all know, IBM added a second PIC and chained it using IRQ2, and the IRQ2 present in the ISA bus was replaced ...
2
votes
1
answer
71
views
Double fault when i enable interrupts (via sti)
im making an os kernel in zig (grub to boot) and im trying to get interrupts to work specifically hardware interrupts and as soon as i enable them (i have a pic, gdt and idt setup) it gives me a ...
6
votes
1
answer
175
views
Replacing int 21h vector in DOS
I'm trying to replace the int 21h vector with a custom routine in MS-DOS. This method works for the timer tick interrupt (1Ch), but for some reason hangs after around 20 calls to 21h.
My code is ...
4
votes
1
answer
127
views
Simple C, TypeScript code is supposed to allow safe UART transmission between host and target, but it doesn’t - Logpoints in embedded programming
I’m following an excellent bare metal tutorial on the Arm Cortex-M4, and I ran into unexpected, somewhat intriguing trouble when trying to properly handle UART interrupts.
Setup:
Host PC: Linux x86_64,...
0
votes
0
answers
36
views
gpio phandle remains unresolved when device overlay is applied
Objective:
To run ltr390 industrial device driver on raspberrypi
Hardware Setup:
Raspberrypi 4B
ltr390 sensor breakout board.
Following are the connections done.
rpi
ltr390
PIN7
INT
PIN1
3.3V
PIN3
...
0
votes
0
answers
38
views
Pin change and timer ISR on attiny85
I am trying to let an Attiny85 decode NMRA DCC signal. I have unfortunately made a mistake in PCB design and I have not used the correct external interrupt pin (PB2) for this purpose. Than I could ...
0
votes
2
answers
134
views
Does cancelling a Future re-interrupt a thread?
In chapter 7.1.5 of the "Java Concurrency in Practice" book, it says
When Future.get throws InterruptedException or TimeoutException and you know that the results is no longer needed by the ...
1
vote
1
answer
106
views
How to implement interrupts in pure functional languages [closed]
How would a pure functional programming language with encapsulated effects via monads (e.g. haskell) deal with interrupts?
Usually, interrupt handlers modify some global state, but accessing a global ...
-1
votes
1
answer
183
views
How to set up handler for microblaze interrupt?
I'm trying to use microblaze interrupt to handle with simple gpio button interrupt. In the block, only gpio and uart is used as well as interrupt controller. Interrupt controller is set for level ...