Deleted Added
full compact
aim_machdep.c (273174) aim_machdep.c (275268)
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:

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

50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#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:

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

50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 273174 2014-10-16 18:04:43Z davide $");
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 275268 2014-11-29 20:54:33Z jhibbits $");
59
60#include "opt_compat.h"
61#include "opt_ddb.h"
62#include "opt_kstack_pages.h"
63#include "opt_platform.h"
64
65#include <sys/param.h>
66#include <sys/proc.h>

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

752{
753 if (!(frame->srr1 & PSL_PR)
754 && (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC
755 || (frame->exc == EXC_PGM
756 && (frame->srr1 & 0x20000))
757 || frame->exc == EXC_BPT
758 || frame->exc == EXC_DSI)) {
759 int type = frame->exc;
59
60#include "opt_compat.h"
61#include "opt_ddb.h"
62#include "opt_kstack_pages.h"
63#include "opt_platform.h"
64
65#include <sys/param.h>
66#include <sys/proc.h>

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

752{
753 if (!(frame->srr1 & PSL_PR)
754 && (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC
755 || (frame->exc == EXC_PGM
756 && (frame->srr1 & 0x20000))
757 || frame->exc == EXC_BPT
758 || frame->exc == EXC_DSI)) {
759 int type = frame->exc;
760
761 /* Ignore DTrace traps. */
762 if (*(uint32_t *)frame->srr0 == EXC_DTRACE)
763 return (0);
760 if (type == EXC_PGM && (frame->srr1 & 0x20000)) {
761 type = T_BREAKPOINT;
762 }
763 return (kdb_trap(type, 0, frame));
764 }
765
766 return (0);
767}

--- 186 unchanged lines hidden ---
764 if (type == EXC_PGM && (frame->srr1 & 0x20000)) {
765 type = T_BREAKPOINT;
766 }
767 return (kdb_trap(type, 0, frame));
768 }
769
770 return (0);
771}

--- 186 unchanged lines hidden ---