powerpc64/ftrace: use PACA to retrieve TOC in mod_return_to_handler
authorSteven Rostedt <srostedt@redhat.com>
Tue, 15 Sep 2009 15:30:14 +0000 (08:30 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 13 Oct 2009 21:20:56 +0000 (14:20 -0700)
commitbe10ab109099f8bd8dd365677a9fe641584c1b5b
tree2b1b9cf8444fea85b5a252704b3da90bf1e536fb
parent9135c3cc5acf344eb28735681d8bebdb98a2c216
powerpc64/ftrace: use PACA to retrieve TOC in mod_return_to_handler

The mod_return_to_handler needs to switch to the kernel TOC before
jumping to a the kernel code. It currently does this by looking
at the kernel function data and retrieves the TOC that way.

Not only is this inefficient, it also breaks with a relocatable kernel.
The PACA contains the kernel TOC and we can easily retrieve it that
way.

Reported-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/powerpc/kernel/entry_64.S