Deleted Added
full compact
trap.c (217345) trap.c (223562)
1/* $OpenBSD: trap.c,v 1.19 1998/09/30 12:40:41 pefo Exp $ */
2/* tracked to 1.23 */
3/*-
4 * Copyright (c) 1988 University of Utah.
5 * Copyright (c) 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

34 * SUCH DAMAGE.
35 *
36 * from: Utah Hdr: trap.c 1.32 91/04/06
37 *
38 * from: @(#)trap.c 8.5 (Berkeley) 1/11/94
39 * JNPR: trap.c,v 1.13.2.2 2007/08/29 10:03:49 girish
40 */
41#include <sys/cdefs.h>
1/* $OpenBSD: trap.c,v 1.19 1998/09/30 12:40:41 pefo Exp $ */
2/* tracked to 1.23 */
3/*-
4 * Copyright (c) 1988 University of Utah.
5 * Copyright (c) 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

34 * SUCH DAMAGE.
35 *
36 * from: Utah Hdr: trap.c 1.32 91/04/06
37 *
38 * from: @(#)trap.c 8.5 (Berkeley) 1/11/94
39 * JNPR: trap.c,v 1.13.2.2 2007/08/29 10:03:49 girish
40 */
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/sys/mips/mips/trap.c 217345 2011-01-13 06:48:43Z jchandra $");
42__FBSDID("$FreeBSD: head/sys/mips/mips/trap.c 223562 2011-06-26 10:07:48Z kevlo $");
43
44#include "opt_ddb.h"
45#include "opt_global.h"
46#include "opt_ktrace.h"
47
48#define NO_REG_DEFS 1 /* Prevent asm.h from including regdef.h */
49#include <sys/param.h>
50#include <sys/systm.h>

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

86
87#ifdef DDB
88#include <machine/db_machdep.h>
89#include <ddb/db_sym.h>
90#include <ddb/ddb.h>
91#include <sys/kdb.h>
92#endif
93
43
44#include "opt_ddb.h"
45#include "opt_global.h"
46#include "opt_ktrace.h"
47
48#define NO_REG_DEFS 1 /* Prevent asm.h from including regdef.h */
49#include <sys/param.h>
50#include <sys/systm.h>

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

86
87#ifdef DDB
88#include <machine/db_machdep.h>
89#include <ddb/db_sym.h>
90#include <ddb/ddb.h>
91#include <sys/kdb.h>
92#endif
93
94#include <sys/cdefs.h>
95#include <sys/syslog.h>
96
97
98#ifdef TRAP_DEBUG
99int trap_debug = 0;
100SYSCTL_INT(_machdep, OID_AUTO, trap_debug, CTLFLAG_RW,
101 &trap_debug, 0, "Debug information on all traps");
102#endif
103
104static void log_illegal_instruction(const char *, struct trapframe *);
105static void log_bad_page_fault(char *, struct trapframe *, int);

--- 1414 unchanged lines hidden ---
94#ifdef TRAP_DEBUG
95int trap_debug = 0;
96SYSCTL_INT(_machdep, OID_AUTO, trap_debug, CTLFLAG_RW,
97 &trap_debug, 0, "Debug information on all traps");
98#endif
99
100static void log_illegal_instruction(const char *, struct trapframe *);
101static void log_bad_page_fault(char *, struct trapframe *, int);

--- 1414 unchanged lines hidden ---