]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace/x86_32: Simplify parameter setup for ftrace_regs_caller
authorUros Bizjak <ubizjak@gmail.com>
Thu, 19 Jul 2012 17:04:47 +0000 (13:04 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 31 Jul 2012 14:29:34 +0000 (10:29 -0400)
commit6f6f5a5b1a4c0ce8f1c4616cae19533bac8c9325
tree87ac8c2d28fc1b4394eb7aedd937a96dd2de7abf
parent25d77850be99af7ad7111e9e3277a6ab83f8824c
ftrace/x86_32: Simplify parameter setup for ftrace_regs_caller

The final position of the stack after saving regs and setting up
the parameters for ftrace_regs_call, is the position of the pt_regs
needed for the 4th parameter. Instead of saving it into a temporary
reg and pushing the reg, simply push the stack pointer.

Link: http://lkml.kernel.org/r/1342702344.12353.16.camel@gandalf.stny.rr.com
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/entry_32.S