Commit f54aab4a authored by Paul Mundt's avatar Paul Mundt

sh: oprofile: Kill off dead valid_kernel_stack().

This is no longer used, kill it off.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0eff9f66
...@@ -81,33 +81,6 @@ user_backtrace(unsigned long *stackaddr, struct pt_regs *regs) ...@@ -81,33 +81,6 @@ user_backtrace(unsigned long *stackaddr, struct pt_regs *regs)
return stackaddr; return stackaddr;
} }
/*
* | | /\ Higher addresses
* | |
* --------------- stack base (address of current_thread_info)
* | thread info |
* . .
* | stack |
* --------------- saved regs->regs[15] value if valid
* . .
* --------------- struct pt_regs stored on stack (struct pt_regs *)
* | |
* . .
* | |
* --------------- ???
* | |
* | | \/ Lower addresses
*
* Thus, &pt_regs <-> stack base restricts the valid(ish) fp values
*/
static int valid_kernel_stack(unsigned long *stackaddr, struct pt_regs *regs)
{
unsigned long stack = (unsigned long)regs;
unsigned long stack_base = (stack & ~(THREAD_SIZE - 1)) + THREAD_SIZE;
return ((unsigned long)stackaddr > stack) && ((unsigned long)stackaddr < stack_base);
}
void sh_backtrace(struct pt_regs * const regs, unsigned int depth) void sh_backtrace(struct pt_regs * const regs, unsigned int depth)
{ {
unsigned long *stackaddr; unsigned long *stackaddr;
......
Markdown is supported
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