traps.c (4d68c05ce11f4cdf6a6392f3a18dc6a985b4d0c4) traps.c (ebaeb5ae24379b5b635dc1d1fa6df904bc95b4d9)
1/*
2 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
3 * Copyright 2007-2010 Freescale Semiconductor, Inc.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.

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

52#endif
53#ifdef CONFIG_PPC64
54#include <asm/firmware.h>
55#include <asm/processor.h>
56#endif
57#include <asm/kexec.h>
58#include <asm/ppc-opcode.h>
59#include <asm/rio.h>
1/*
2 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
3 * Copyright 2007-2010 Freescale Semiconductor, Inc.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.

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

52#endif
53#ifdef CONFIG_PPC64
54#include <asm/firmware.h>
55#include <asm/processor.h>
56#endif
57#include <asm/kexec.h>
58#include <asm/ppc-opcode.h>
59#include <asm/rio.h>
60#include <asm/fadump.h>
60
61#if defined(CONFIG_DEBUGGER) || defined(CONFIG_KEXEC)
62int (*__debugger)(struct pt_regs *regs) __read_mostly;
63int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly;
64int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly;
65int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly;
66int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly;
67int (*__debugger_dabr_match)(struct pt_regs *regs) __read_mostly;

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

140 die_nest_count--;
141 oops_exit();
142 printk("\n");
143 if (!die_nest_count)
144 /* Nest count reaches zero, release the lock. */
145 arch_spin_unlock(&die_lock);
146 raw_local_irq_restore(flags);
147
61
62#if defined(CONFIG_DEBUGGER) || defined(CONFIG_KEXEC)
63int (*__debugger)(struct pt_regs *regs) __read_mostly;
64int (*__debugger_ipi)(struct pt_regs *regs) __read_mostly;
65int (*__debugger_bpt)(struct pt_regs *regs) __read_mostly;
66int (*__debugger_sstep)(struct pt_regs *regs) __read_mostly;
67int (*__debugger_iabr_match)(struct pt_regs *regs) __read_mostly;
68int (*__debugger_dabr_match)(struct pt_regs *regs) __read_mostly;

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

141 die_nest_count--;
142 oops_exit();
143 printk("\n");
144 if (!die_nest_count)
145 /* Nest count reaches zero, release the lock. */
146 arch_spin_unlock(&die_lock);
147 raw_local_irq_restore(flags);
148
149 crash_fadump(regs, "die oops");
150
148 /*
149 * A system reset (0x100) is a request to dump, so we always send
150 * it through the crashdump code.
151 */
152 if (kexec_should_crash(current) || (TRAP(regs) == 0x100)) {
153 crash_kexec(regs);
154
155 /*

--- 1459 unchanged lines hidden ---
151 /*
152 * A system reset (0x100) is a request to dump, so we always send
153 * it through the crashdump code.
154 */
155 if (kexec_should_crash(current) || (TRAP(regs) == 0x100)) {
156 crash_kexec(regs);
157
158 /*

--- 1459 unchanged lines hidden ---