traps.c (351dd61c3821fe9b6702205d3a894004a9674295) traps.c (9cb8f069deeed708bf19486d5893e297dc467ae0)
1/*
2 * Hardware exception handling
3 *
4 * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
5 * Copyright (C) 2004 Microtronix Datacom Ltd.
6 * Copyright (C) 2001 Vic Phillips
7 *
8 * This file is subject to the terms and conditions of the GNU General

--- 38 unchanged lines hidden (view full) ---

47{
48 if (!user_mode(regs))
49 die("Exception in kernel mode", regs, signo);
50
51 _send_sig(signo, code, addr);
52}
53
54/*
1/*
2 * Hardware exception handling
3 *
4 * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
5 * Copyright (C) 2004 Microtronix Datacom Ltd.
6 * Copyright (C) 2001 Vic Phillips
7 *
8 * This file is subject to the terms and conditions of the GNU General

--- 38 unchanged lines hidden (view full) ---

47{
48 if (!user_mode(regs))
49 die("Exception in kernel mode", regs, signo);
50
51 _send_sig(signo, code, addr);
52}
53
54/*
55 * The show_stack(), show_stack_loglvl() are external API
56 * which we do not use ourselves.
55 * The show_stack() is external API which we do not use ourselves.
57 */
58
59int kstack_depth_to_print = 48;
60
56 */
57
58int kstack_depth_to_print = 48;
59
61void show_stack_loglvl(struct task_struct *task, unsigned long *stack,
62 const char *loglvl)
60void show_stack(struct task_struct *task, unsigned long *stack,
61 const char *loglvl)
63{
64 unsigned long *endstack, addr;
65 int i;
66
67 if (!stack) {
68 if (task)
69 stack = (unsigned long *)task->thread.ksp;
70 else

--- 30 unchanged lines hidden (view full) ---

101 pr_emerg("\n ");
102 printk("%s [<%08lx>]", loglvl, addr);
103 i++;
104 }
105 }
106 printk("%s\n", loglvl);
107}
108
62{
63 unsigned long *endstack, addr;
64 int i;
65
66 if (!stack) {
67 if (task)
68 stack = (unsigned long *)task->thread.ksp;
69 else

--- 30 unchanged lines hidden (view full) ---

100 pr_emerg("\n ");
101 printk("%s [<%08lx>]", loglvl, addr);
102 i++;
103 }
104 }
105 printk("%s\n", loglvl);
106}
107
109void show_stack(struct task_struct *task, unsigned long *stack)
110{
111 show_stack_loglvl(task, stack, KERN_EMERG);
112}
113
114void __init trap_init(void)
115{
116 /* Nothing to do here */
117}
118
119/* Breakpoint handler */
120asmlinkage void breakpoint_c(struct pt_regs *fp)
121{

--- 86 unchanged lines hidden ---
108void __init trap_init(void)
109{
110 /* Nothing to do here */
111}
112
113/* Breakpoint handler */
114asmlinkage void breakpoint_c(struct pt_regs *fp)
115{

--- 86 unchanged lines hidden ---