Skip to content
Commit be10ab10 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

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: default avatarSachin Sant <sachinp@in.ibm.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 9135c3cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment