Does interrupts totally disappear with CLI?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Sam

Does interrupts totally disappear with CLI?

Post by Sam »

Or are they "suspended" until next "sti" and will occur immedietly after???
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Does interrupts totally disappear with CLI?

Post by Solar »

Deleted: I stand corrected.
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Does interrupts totally disappear with CLI?

Post by Pype.Clicker »

actually, they do not "disappear" ... The CPU will ignore any external IRQ request until you STI. When you STI, it will acknowledge the IRQ request and receive interrupts that were pending at the Programmable Interrupt Controller.

Btw, even when IF is cleared, you can still issue interrupts with INT nn instruction or receive exceptions.

Oh, for completeness, CLI doesn't mask "Non-maskable Interrupts", but unless you activate "issue NMI when memory checksum fails" and have memory chips with ECC, i dunno how you could even get an NMI ...
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Does interrupts totally disappear with CLI?

Post by Candy »

Pype.Clicker wrote: Oh, for completeness, CLI doesn't mask "Non-maskable Interrupts", but unless you activate "issue NMI when memory checksum fails" and have memory chips with ECC, i dunno how you could even get an NMI ...
Well, you don't need chips with ECC :D just shorting some pins of the ISA bus gives an NMI :-[
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Does interrupts totally disappear with CLI?

Post by Pype.Clicker »

shorting pins ?? you mean cutting them, or wire-strap them or something ??
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Does interrupts totally disappear with CLI?

Post by Candy »

Pype.Clicker wrote: shorting pins ?? you mean cutting them, or wire-strap them or something ??
well, you take a wire, connect them and the system says: Memory parity error. System halted.

At least, on a 8088 we tried it on :). We tried to get some pins connected normally so we could make our own 8-bit ISA cards... didn't work out as we had hoped :)
Post Reply