trap.c (266019) | trap.c (269752) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 3 * Copyright (C) 1995, 1996 TooLs GmbH. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $NetBSD: trap.c,v 1.58 2002/03/04 04:07:35 dbj Exp $ 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 3 * Copyright (C) 1995, 1996 TooLs GmbH. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $NetBSD: trap.c,v 1.58 2002/03/04 04:07:35 dbj Exp $ 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: stable/10/sys/powerpc/aim/trap.c 266019 2014-05-14 14:08:45Z ian $"); | 35__FBSDID("$FreeBSD: stable/10/sys/powerpc/aim/trap.c 269752 2014-08-09 14:05:01Z markj $"); |
36 37#include "opt_kdtrace.h" 38 39#include <sys/param.h> 40#include <sys/kdb.h> 41#include <sys/proc.h> 42#include <sys/ktr.h> 43#include <sys/lock.h> --- 48 unchanged lines hidden (view full) --- 92struct powerpc_exception { 93 u_int vector; 94 char *name; 95}; 96 97#ifdef KDTRACE_HOOKS 98#include <sys/dtrace_bsd.h> 99 | 36 37#include "opt_kdtrace.h" 38 39#include <sys/param.h> 40#include <sys/kdb.h> 41#include <sys/proc.h> 42#include <sys/ktr.h> 43#include <sys/lock.h> --- 48 unchanged lines hidden (view full) --- 92struct powerpc_exception { 93 u_int vector; 94 char *name; 95}; 96 97#ifdef KDTRACE_HOOKS 98#include <sys/dtrace_bsd.h> 99 |
100/* 101 * This is a hook which is initialised by the dtrace module 102 * to handle traps which might occur during DTrace probe 103 * execution. 104 */ 105dtrace_trap_func_t dtrace_trap_func; 106 107dtrace_doubletrap_func_t dtrace_doubletrap_func; 108 109/* 110 * This is a hook which is initialised by the systrace module 111 * when it is loaded. This keeps the DTrace syscall provider 112 * implementation opaque. 113 */ 114systrace_probe_func_t systrace_probe_func; 115 116/* 117 * These hooks are necessary for the pid and usdt providers. 118 */ 119dtrace_pid_probe_ptr_t dtrace_pid_probe_ptr; 120dtrace_return_probe_ptr_t dtrace_return_probe_ptr; | |
121int (*dtrace_invop_jump_addr)(struct trapframe *); 122#endif 123 124static struct powerpc_exception powerpc_exceptions[] = { 125 { 0x0100, "system reset" }, 126 { 0x0200, "machine check" }, 127 { 0x0300, "data storage interrupt" }, 128 { 0x0380, "data segment exception" }, --- 613 unchanged lines hidden --- | 100int (*dtrace_invop_jump_addr)(struct trapframe *); 101#endif 102 103static struct powerpc_exception powerpc_exceptions[] = { 104 { 0x0100, "system reset" }, 105 { 0x0200, "machine check" }, 106 { 0x0300, "data storage interrupt" }, 107 { 0x0380, "data segment exception" }, --- 613 unchanged lines hidden --- |