2d7c11bfc9
This patch changes the walk_stacktrace and its callers for easier integration of stack unwinding. The arch/arm/kernel/stacktrace.h file is also moved to arch/arm/include/asm/stacktrace.h. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
16 lines
353 B
C
16 lines
353 B
C
#ifndef __ASM_STACKTRACE_H
|
|
#define __ASM_STACKTRACE_H
|
|
|
|
struct stackframe {
|
|
unsigned long fp;
|
|
unsigned long sp;
|
|
unsigned long lr;
|
|
unsigned long pc;
|
|
};
|
|
|
|
extern int unwind_frame(struct stackframe *frame);
|
|
extern void walk_stackframe(struct stackframe *frame,
|
|
int (*fn)(struct stackframe *, void *), void *data);
|
|
|
|
#endif /* __ASM_STACKTRACE_H */
|