hardware interrupts

This is a discussion on hardware interrupts within the Tech Board forums, part of the Community Boards category; When a hardware interrupt occurs, where (or when) is cs:ip pushed onto the stack, I need to know what I ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    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, 02:32 AM
  2. Hardware interrupts
    By Sentral in forum Tech Board
    Replies: 5
    Last Post: 02-23-2009, 05:46 PM
  3. Interrupts from a keyboard?
    By Eldarion in forum C++ Programming
    Replies: 4
    Last Post: 02-23-2009, 03:36 PM
  4. How does hardware interpret data?
    By Silvercord in forum Tech Board
    Replies: 3
    Last Post: 01-29-2003, 12:46 PM
  5. Linux Hardware Handbook
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-02-2002, 05:06 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21