Deleted Added
full compact
trap.c (171783) trap.c (173600)
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: head/sys/powerpc/aim/trap.c 171783 2007-08-07 18:40:02Z marcel $");
35__FBSDID("$FreeBSD: head/sys/powerpc/aim/trap.c 173600 2007-11-14 06:21:24Z julian $");
36
37#include "opt_ktrace.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>

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

298 printf(" virtual address = 0x%x\n", frame->srr0);
299 break;
300 }
301 printf(" srr0 = 0x%x\n", frame->srr0);
302 printf(" srr1 = 0x%x\n", frame->srr1);
303 printf(" curthread = %p\n", curthread);
304 if (curthread != NULL)
305 printf(" pid = %d, comm = %s\n",
36
37#include "opt_ktrace.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>

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

298 printf(" virtual address = 0x%x\n", frame->srr0);
299 break;
300 }
301 printf(" srr0 = 0x%x\n", frame->srr0);
302 printf(" srr1 = 0x%x\n", frame->srr1);
303 printf(" curthread = %p\n", curthread);
304 if (curthread != NULL)
305 printf(" pid = %d, comm = %s\n",
306 curthread->td_proc->p_pid, curthread->td_proc->p_comm);
306 curthread->td_proc->p_pid, curthread->td_name);
307 printf("\n");
308}
309
310/*
311 * Handles a fatal fault when we have onfault state to recover. Returns
312 * non-zero if there was onfault recovery state available.
313 */
314static int

--- 367 unchanged lines hidden ---
307 printf("\n");
308}
309
310/*
311 * Handles a fatal fault when we have onfault state to recover. Returns
312 * non-zero if there was onfault recovery state available.
313 */
314static int

--- 367 unchanged lines hidden ---