Finding systemcall caller's eip

From: Krisztian Flautner (manowar@engin.umich.edu)
Date: Fri May 12 2000 - 23:19:20 EDT

  • Next message: Donald Becker: "Re: 3com 3c905c-txm"

    Hello,

    Could someone please enlighten me on the following:

    How can I determine the address from which a system call
    was invoked?

    I would like to figure out the address (EIP) of the user
    mode code that invoked a system call. If I understand
    correctly, I should be able to do this through the esp
    in the thread_struct, right? I also need some enlightenment
    on how esp and esp0 are different. Is esp0 is for the protected
    mode stack?

    Please send replies to me directly, since I am not currently
    subscribed to the list.

    Thanks, -- Kris

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri May 12 2000 - 23:20:43 EDT