interrupt Questions
1
Solved
Other than certain normal specified conditions where interrupts are not delivered to the virtual processor (cli, if=0, etc), are all instructions in the guest actually interruptible?
That is to sa...
Polenta asked 22/2, 2019 at 6:46
3
Solved
I am working on an Arduino Mega 2560 project. At a Windows 7 PC I am using the Arduino1.0 IDE. I need to establish a serial Bluetooth communication with a baud rate of 115200. I need to receive an ...
Bathulda asked 18/4, 2012 at 1:32
14
Solved
When should one use polling method and when should one use interrupt based method ?
Are there scenarios in which both can be used ?
Izard asked 18/6, 2010 at 20:23
1
Solved
I have a textbook statement says disabling interrupt is not recommended in multi-processor system, and it will take too much time. But I don't understand this, can anyone show me the process of mul...
Ul asked 25/12, 2018 at 5:4
1
Solved
Suppose that CPU is running an assembly instruction, say, FOO that will be executed in several clocks (e.g. 10)
An interrupt request has come just in the middle of executing FOO and processor need...
0
I have an interrupt handler within a class and following method:
def interruptHandler(self, signal, frame):
""" Catches SIGINT and SIGTERM to allow proper shutdown of all threads etc."""
self.s...
2
Solved
Given the following C program:
static char vals[ 2 ] = {0, 0};
int main() {
char *a = &vals[0];
char *b = &vals[1];
while( 1 ) {
SOME_STUFF()
// non-atomic operations in critical se...
Futile asked 19/11, 2018 at 22:50
1
On Linux, the C standard library calls fread and fwrite execute the system call equivalents, read and write.
The man pages for the system calls mention interrupts, saying that a short write may oc...
Clingstone asked 11/11, 2018 at 3:58
1
I want to avoid nested interrupts at the interrupts entry in a CortexM based microcontroller.
To achieve this I have an assembly file containing interrupt vectors and first instruction of each vec...
Gambia asked 19/10, 2018 at 5:55
1
Solved
I'm creating a context switch program for a personal mini ARM kernel project and the context switch program is written entirely in Assembly. The problem is when I make a SVC call (svc 0) I enter th...
Dikmen asked 6/8, 2018 at 6:2
1
Solved
I am writing my own OS in 16 bit x86 Assembly, and I'm trying to register my own interrupt, something like INT 21H in MS-DOS.
I couldn't find anything on the web.
I'm using NASM as the assembler.
1
In an embedded (ARM) environment with no OS, if I use interrupts, then is there potential for deadlock using std::atomic<T>? If so, how?
In general, any moment, control can be interrupted t...
3
Solved
I've found that CompletableFuture::join seems uninterruptible when not completed:
// CompletableFuture::join implementation from JDK 8 sources
public T join() {
Object r;
return reportJoin((r =...
Repro asked 28/5, 2017 at 19:48
2
Solved
I'm trying to interface a pressure sensor (MS5803-14BA) with my board (NUCLEO-STM32L073RZ).
According to the datasheet (page 3), the pressure sensor requires some milliseconds before the measureme...
Mcilwain asked 25/4, 2018 at 18:11
6
Solved
I'm doing some development in C with a STM32F107 chip and, at some point, the device began to reset when I call a specific function. I don't have a debugger and my debugging is just plain text over...
2
Solved
How does multi-core processors handle interrupts?
I know of how single core processors handle interrupts.
I also know of the different types of interrupts.
I want to know how multi core processors ...
Weywadt asked 20/3, 2018 at 8:57
1
Solved
I have a program with a signal handler:
signal(SIGINT, signalhandler);
Then the program forks and the child needs a different signal handler so:
pid = fork();
/* What happens here? */
if(pid=...
2
Solved
My following understanding of the terminology is this
1) An interrupt
is "a notification" that is initiated by the hardware to call the OS to run its handlers
2) A trap
is "a notification" ...
Linis asked 21/3, 2018 at 0:38
2
Solved
1
Solved
I couldn't get MASM to accept a far call instruction written as call 0f000h:1260h, probably because of the issues brought up in this question.
Instead of messing around with cryptic MASM directive...
3
Solved
I have an http server (launched using http.Handle) and I would like to do some operations.
How can I do that (on linux) ? Is it possible to do those operations in case of a ctrl-C ?
I'm not famil...
1
I am currently studying the specifications for RISC-V with specification version 2.2 and Privileged Architecture version 1.10. In Chapter 2 of RISC-V specification, it is mentioned that "[...]...
Hypothetical asked 2/12, 2017 at 6:58
3
I have a function a doing some tasks and another function b being a callback to some events. Whenever an event happens, function b is called and I would like to make it able to interrupt the execut...
2
Say we have a web worker referring to a file called "worker.js". We use the worker to execute a function in "worker.js" that does some lengthy operation. We call post the respective message to the ...
Wilcher asked 28/8, 2015 at 10:30
4
Solved
Is there any expert out there that can help me with the following?
I have the following system calls in C:
access()
unlink()
setsockopt()
fcntl()
setsid()
socket()
bind()
listen()
I want to kno...
Swadeshi asked 8/9, 2014 at 17:33
© 2022 - 2024 — McMap. All rights reserved.