aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/oprofile/backtrace.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/sh/oprofile/backtrace.c b/arch/sh/oprofile/backtrace.c
index 37cd75d7930e..2bc74de23f08 100644
--- a/arch/sh/oprofile/backtrace.c
+++ b/arch/sh/oprofile/backtrace.c
@@ -81,33 +81,6 @@ user_backtrace(unsigned long *stackaddr, struct pt_regs *regs)
81 return stackaddr; 81 return stackaddr;
82} 82}
83 83
84/*
85 * | | /\ Higher addresses
86 * | |
87 * --------------- stack base (address of current_thread_info)
88 * | thread info |
89 * . .
90 * | stack |
91 * --------------- saved regs->regs[15] value if valid
92 * . .
93 * --------------- struct pt_regs stored on stack (struct pt_regs *)
94 * | |
95 * . .
96 * | |
97 * --------------- ???
98 * | |
99 * | | \/ Lower addresses
100 *
101 * Thus, &pt_regs <-> stack base restricts the valid(ish) fp values
102 */
103static int valid_kernel_stack(unsigned long *stackaddr, struct pt_regs *regs)
104{
105 unsigned long stack = (unsigned long)regs;
106 unsigned long stack_base = (stack & ~(THREAD_SIZE - 1)) + THREAD_SIZE;
107
108 return ((unsigned long)stackaddr > stack) && ((unsigned long)stackaddr < stack_base);
109}
110
111void sh_backtrace(struct pt_regs * const regs, unsigned int depth) 84void sh_backtrace(struct pt_regs * const regs, unsigned int depth)
112{ 85{
113 unsigned long *stackaddr; 86 unsigned long *stackaddr;