Quote:How would the state of the interrupt flag affect what the interrupt handler could do? It affects only whether or not the handler is entered.
Yes, but *does* the handler get entered from a "int xx" when interrupts are disabled?
Quote:How would the state of the interrupt flag affect what the interrupt handler could do? It affects only whether or not the handler is entered.
Quote:I can't see how CLI / STI are useful even in kernel-mode programming, because on a multiprocessor system (or hyperthread), they don't actually stop interrupts from interrupting the other processor.
Quote:Original post by DrPizzaQuote:How would the state of the interrupt flag affect what the interrupt handler could do? It affects only whether or not the handler is entered.
Yes, but *does* the handler get entered from a "int xx" when interrupts are disabled?
Quote:Original post by DrPizza
But do they have to? The point of disabling interrupts is to make sure the processor doesn't get interrupted when it's dealing with an interrupt, not to protect shared resources.