interrupt Questions
2
I have a programme using sem_wait. The Posix specification says:
The sem_wait() function is interruptible by the delivery of a signal.
Additionally, in the section about errors it says:
[EI...
Shere asked 26/4, 2020 at 22:23
4
Solved
What is the difference between vectored and non vectored interrupts?
I thought all interrupts had to be vectored interrupts... After all don't all interrupts have a vector number and thus a vector...
Speaker asked 29/6, 2011 at 7:30
4
Solved
I do not have a problem in the true sense of the word, but rather I will try to clarify a question of content. Suppose we have a microkernel (PC Intel x86; 32 Bit Protected Mode) with working Inter...
3
Solved
In Ruby I have the following:
# Trap Interrupts
trap("INT") do
puts "Shutting down..."
exit
end
When I interrupt the program, the following is printed (Mac OSX Lion):
^CShutting down...
I...
3
Solved
Curious what the processor/CPU does in general or let say, on intel cpu & Linux, when it executes a division by zero instruction. Also how the error is relayed to the application, so that it ca...
Peel asked 26/5, 2014 at 22:20
1
Solved
Hi I'm writing a kernel and plan to use MSI interrupt for PCI devices.
However, I'm also quite confused by the documentations.
My understanding about MSI are as follow:
From PCI device point of ...
Quar asked 5/9, 2019 at 11:29
2
Solved
As known there are two approach to avoid some overheads of hardware interrupts in highload networks, when there are too many hardware interrupts, that switching to them takes too much time. It is v...
Capriccioso asked 22/1, 2015 at 13:34
5
Solved
I am interested in evaluating the behavior (latency, frequency) of SMI handling on Linux machine running CentOS and used for a (very) soft real time application.
What tools are recommended (hwlat...
1
TL;DR : Using Linux kernel real time with NO_HZ_FULL I need to isolate a process in order to have deterministic results but /proc/interrupts tell me there is still local timer interrupts (among oth...
Pelligrini asked 6/9, 2017 at 14:15
1
Solved
I'm making a very basic command line utility using python, and I'm trying to set it up such that the user has the ability to interrupt any running operation during execution with Ctrl+C, and ...
Kayser asked 30/8, 2019 at 15:45
2
I've been trying to write TSR (Terminate-Stay-Resident) programs (in general) in Assembly (16-bit) for MS-DOS. I've read through a Wikipedia page
on TSR and also a page on using it specifically in...
2
Solved
When using an RTOS (ex FreeRTOS), we have separate stack spaces for each thread. So what about ISR (Interrupt Service Routines), does they have a separate stack in the memory? Or is this configurab...
2
I looking for the info that can help in estimating interrupt latencies on x86 CPUs. The very usefull paper was found at "datasheets.chipdb.org/Intel/x86/386/technote/2153.pdf". But this paper opene...
Morman asked 31/7, 2011 at 18:12
3
From multiple articles around the internet it's advised not to swallow InterruptedException. It makes much more sense to do it with thread pool executors something like this when I'm going to reuse...
Brake asked 20/8, 2019 at 14:4
5
Solved
In VBA on Excel, I have a loop over several thousands of cells, which takes some minutes.
Is it possible to abort a long term loop (if so, how) / can I build a button or something like that to in...
1
Solved
I'm fairly new to OS development and I recently started a hobby project of creating a simple-as-possible text-only operating system. It's written in C with some help from assembly and uses GRUB for...
1
Solved
Let x and y be variables that are shared between main code and interrupt code.
My idea of volatile is that it is only and always needed for hardware variables and interrupt variables that are also...
Hauteur asked 27/6, 2019 at 12:49
2
Solved
I'm trying to set the handler of Interrupt 28h to my own routine, restore all the registers and flags involved, and restore the original Interrupt handler.
I'm using NASM Assembler, under DOSBox an...
2
Solved
I'm working on a project on a STM32F4 CPU, generating signals.
I have a generic timer on CPU clock (no prescaler) on a STM32 triggering interrupts on overflow, to generate a periodic signal with G...
Tillfourd asked 11/9, 2012 at 13:40
2
Solved
My understanding is that inserting software breakpoints involves replacing the next instruction in code to be executed by a software interrupt instruction which will cause the CPU to halt when it r...
Debi asked 10/4, 2019 at 21:52
4
Solved
I have the following pyqtmain.py:
#!/usr/bin/python3
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from pyqtMeasThread import *
class MainWindow(QMainWindow):
def __init__(sel...
Crenulate asked 9/12, 2015 at 8:55
1
Solved
The C standard states that the volatile keyword should be used in the definition of a variable when there's a chance that the variable's value could change outside the normal flow of execution of t...
2
When an interrupt comes to CPU, it is handled by saving current address location prior jumping into the handler if it is acknowledged. Otherwise it is ignored.
I wonder whether an assembly instruc...
Crewel asked 15/3, 2019 at 10:24
2
Solved
Is volatile needed for a variable that is read&write in main loop, but read-only in ISR?
EDIT: At the moment of writing in main, the ISR is disabled. So, the variable is effectively used atomi...
1
Solved
Currently working on a PCI device driver. And the device is programmed like this:
When a DMA transmission is done, the device send a MSI interrupt to PC with MSI data "001" binary.
Now I'm writin...
Monroy asked 22/4, 2016 at 10:5
© 2022 - 2024 — McMap. All rights reserved.