x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / microblaze / kernel / stacktrace.c
blobb4debe283a79e2cb3f26c5d63925742e6efa5151
1 /*
2 * Stack trace support for Microblaze.
4 * Copyright (C) 2009 Michal Simek <monstr@monstr.eu>
5 * Copyright (C) 2009 PetaLogix
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
12 #include <linux/export.h>
13 #include <linux/sched.h>
14 #include <linux/stacktrace.h>
15 #include <linux/thread_info.h>
16 #include <linux/ptrace.h>
17 #include <asm/unwind.h>
19 void save_stack_trace(struct stack_trace *trace)
21 /* Exclude our helper functions from the trace*/
22 trace->skip += 2;
23 microblaze_unwind(NULL, trace);
25 EXPORT_SYMBOL_GPL(save_stack_trace);
27 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
29 microblaze_unwind(tsk, trace);
31 EXPORT_SYMBOL_GPL(save_stack_trace_tsk);