Finding systemcall caller's eip

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


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 : Mon May 15 2000 - 21:00:22 EST