accessing the program counter

Gayathri Chandrasekaran (gchandra@eecs.ku.edu)
Mon, 14 Oct 2002 15:04:19 -0500 (CDT)


Hello
I'm trying to read the value of program counter at the time a context
switch occurs from the kernel.I looked at the schedule() function in
sched.c and also the switch_to() in system.h.I also looked at the
current_text_addr () in include/asm-i386/processor.h which is a macro that
returns the current instruction pointer.But I'm nto sure if I'm in the
right track.Also I need some help in understanding the assmbly language
instructions.Can someone help me with this.

thanks
gayathri

Gayathri Chandrasekaran
Department of Electrical
Engineering and Computer Science
University of Kansas
Lawrence,KS-66045.

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