Thread: hardware interrupts

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    140

    hardware interrupts

    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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    140
    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.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Then you need the processor reference manual for what ever processor you're using

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    140
    x86, I guess Ill try the intel website.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 11-30-2009, 03:32 AM
  2. Hardware interrupts
    By Sentral in forum Tech Board
    Replies: 5
    Last Post: 02-23-2009, 06:46 PM
  3. Interrupts from a keyboard?
    By Eldarion in forum C++ Programming
    Replies: 4
    Last Post: 02-23-2009, 04:36 PM
  4. How does hardware interpret data?
    By Silvercord in forum Tech Board
    Replies: 3
    Last Post: 01-29-2003, 01:46 PM
  5. Linux Hardware Handbook
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-02-2002, 06:06 AM