trap.c (78983) | trap.c (81493) |
---|---|
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: --- 19 unchanged lines hidden (view full) --- 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.26 2000/05/27 00:40:40 sommerfeld Exp $ 32 */ 33 34#ifndef lint 35static const char rcsid[] = | 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: --- 19 unchanged lines hidden (view full) --- 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.26 2000/05/27 00:40:40 sommerfeld Exp $ 32 */ 33 34#ifndef lint 35static const char rcsid[] = |
36 "$FreeBSD: head/sys/powerpc/aim/trap.c 78983 2001-06-29 19:51:37Z jhb $"; | 36 "$FreeBSD: head/sys/powerpc/aim/trap.c 81493 2001-08-10 22:53:32Z jhb $"; |
37#endif /* not lint */ 38 39#include "opt_ddb.h" 40#include "opt_ktrace.h" 41 42#include <sys/param.h> 43#include <sys/proc.h> 44#include <sys/reboot.h> --- 26 unchanged lines hidden (view full) --- 71#endif 72 73void 74trap(struct trapframe *frame) 75{ 76#if 0 /* XXX: This code hasn't been reworked yet. */ 77 struct proc *p; 78 int type; | 37#endif /* not lint */ 38 39#include "opt_ddb.h" 40#include "opt_ktrace.h" 41 42#include <sys/param.h> 43#include <sys/proc.h> 44#include <sys/reboot.h> --- 26 unchanged lines hidden (view full) --- 71#endif 72 73void 74trap(struct trapframe *frame) 75{ 76#if 0 /* XXX: This code hasn't been reworked yet. */ 77 struct proc *p; 78 int type; |
79 u_quad_t sticks; | 79 u_int sticks; |
80 81 p = curproc; 82 type = frame->exc; 83 84 if (frame->srr1 & PSL_PR) { 85 type |= EXC_USER; 86 sticks = p->p_sticks; 87 } --- 512 unchanged lines hidden --- | 80 81 p = curproc; 82 type = frame->exc; 83 84 if (frame->srr1 & PSL_PR) { 85 type |= EXC_USER; 86 sticks = p->p_sticks; 87 } --- 512 unchanged lines hidden --- |