diff options
author | Helge Deller <deller@gmx.de> | 2018-08-17 17:00:08 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-08-17 17:00:08 +0200 |
commit | 9e0d5c451f9e559dd06af3fff49a0d2068c634c4 (patch) | |
tree | 1293c908104370c76548f0695297b0277835e1ec /arch/parisc/kernel/stacktrace.c | |
parent | parisc: Update comments in syscall.S regarding wide userland (diff) | |
download | linux-9e0d5c451f9e559dd06af3fff49a0d2068c634c4.tar.xz linux-9e0d5c451f9e559dd06af3fff49a0d2068c634c4.zip |
parisc: Consolidate unwind initialization calls
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel/stacktrace.c')
-rw-r--r-- | arch/parisc/kernel/stacktrace.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/parisc/kernel/stacktrace.c b/arch/parisc/kernel/stacktrace.c index 2fe914c5f533..ec5835e83a7a 100644 --- a/arch/parisc/kernel/stacktrace.c +++ b/arch/parisc/kernel/stacktrace.c @@ -16,20 +16,7 @@ static void dump_trace(struct task_struct *task, struct stack_trace *trace) { struct unwind_frame_info info; - /* initialize unwind info */ - if (task == current) { - unsigned long sp; - struct pt_regs r; -HERE: - asm volatile ("copy %%r30, %0" : "=r"(sp)); - memset(&r, 0, sizeof(struct pt_regs)); - r.iaoq[0] = (unsigned long)&&HERE; - r.gr[2] = (unsigned long)__builtin_return_address(0); - r.gr[30] = sp; - unwind_frame_init(&info, task, &r); - } else { - unwind_frame_init_from_blocked_task(&info, task); - } + unwind_frame_init_task(&info, task, NULL); /* unwind stack and save entries in stack_trace struct */ trace->nr_entries = 0; |