trap.c (160798) | trap.c (160801) |
---|---|
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 160798 2006-07-28 19:05:28Z jhb $"); | 35__FBSDID("$FreeBSD: head/sys/powerpc/aim/trap.c 160801 2006-07-28 20:22:58Z jhb $"); |
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> --- 340 unchanged lines hidden (view full) --- 384 if (p->p_sysent->sv_mask) 385 code &= p->p_sysent->sv_mask; 386 387 if (code >= p->p_sysent->sv_size) 388 callp = &p->p_sysent->sv_table[0]; 389 else 390 callp = &p->p_sysent->sv_table[code]; 391 | 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> --- 340 unchanged lines hidden (view full) --- 384 if (p->p_sysent->sv_mask) 385 code &= p->p_sysent->sv_mask; 386 387 if (code >= p->p_sysent->sv_size) 388 callp = &p->p_sysent->sv_table[0]; 389 else 390 callp = &p->p_sysent->sv_table[code]; 391 |
392 narg = callp->sy_narg & SYF_ARGMASK; | 392 narg = callp->sy_narg; |
393 394 if (narg > n) { 395 bcopy(params, args, n * sizeof(register_t)); 396 error = copyin(MOREARGS(frame->fixreg[1]), args + n, 397 (narg - n) * sizeof(register_t)); 398 params = (caddr_t)args; 399 } else 400 error = 0; --- 275 unchanged lines hidden --- | 393 394 if (narg > n) { 395 bcopy(params, args, n * sizeof(register_t)); 396 error = copyin(MOREARGS(frame->fixreg[1]), args + n, 397 (narg - n) * sizeof(register_t)); 398 params = (caddr_t)args; 399 } else 400 error = 0; --- 275 unchanged lines hidden --- |