hardware interrupts [Archive] - C Board

PDA

View Full Version : hardware interrupts


stupid_mutt
02-20-2002, 02:49 PM
When a hardware interrupt occurs, where (or when) is cs:ip pushed onto the stack, I need to know what I need to pop off the stack.

Salem
02-20-2002, 03:53 PM
In some compilers, you specify an additional keyword (usually interrupt) when you declare the function, and it automatically generates the additional code required to make the function capable of being an ISR

stupid_mutt
02-20-2002, 04:08 PM
You misunderstood. I dont want to know how to hook them (easy enough in assembly). Im guessing that when a hardware interrupt occurs it pushes cs and ip onto the stack and them jumps to wherever it is supposed to, I want to know what else is pushed on the stack first (if anything) so that I can read the values of cs and ip.

Salem
02-20-2002, 04:15 PM
Then you need the processor reference manual for what ever processor you're using

stupid_mutt
02-20-2002, 04:22 PM
x86, I guess Ill try the intel website.