diff options
author | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-01-15 18:16:21 +0800 |
---|---|---|
committer | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-03-17 09:19:07 +0800 |
commit | f73670e8a55c11d47c28dca35dc4bc7dfbd4e6eb (patch) | |
tree | bcf5641d487714be3a1317099769cecbedf4be85 /arch/unicore32/include/asm/stacktrace.h | |
parent | 141c943fd4b323bae2b47f67743dba96134afb1f (diff) | |
download | kernel_samsung_crespo-f73670e8a55c11d47c28dca35dc4bc7dfbd4e6eb.zip kernel_samsung_crespo-f73670e8a55c11d47c28dca35dc4bc7dfbd4e6eb.tar.gz kernel_samsung_crespo-f73670e8a55c11d47c28dca35dc4bc7dfbd4e6eb.tar.bz2 |
unicore32 core architecture: process/thread related codes
This patch implements process/thread related codes. Backtrace and stacktrace are here.
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/unicore32/include/asm/stacktrace.h')
-rw-r--r-- | arch/unicore32/include/asm/stacktrace.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/unicore32/include/asm/stacktrace.h b/arch/unicore32/include/asm/stacktrace.h new file mode 100644 index 0000000..76edc65 --- /dev/null +++ b/arch/unicore32/include/asm/stacktrace.h @@ -0,0 +1,31 @@ +/* + * linux/arch/unicore32/include/asm/stacktrace.h + * + * Code specific to PKUnity SoC and UniCore ISA + * + * Copyright (C) 2001-2010 GUAN Xue-tao + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __UNICORE_STACKTRACE_H__ +#define __UNICORE_STACKTRACE_H__ + +struct stackframe { + unsigned long fp; + unsigned long sp; + unsigned long lr; + unsigned long pc; +}; + +#ifdef CONFIG_FRAME_POINTER +extern int unwind_frame(struct stackframe *frame); +#else +#define unwind_frame(f) (-EINVAL) +#endif +extern void walk_stackframe(struct stackframe *frame, + int (*fn)(struct stackframe *, void *), void *data); + +#endif /* __UNICORE_STACKTRACE_H__ */ |