1/*- 2 * Copyright (c) 2004 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/ia64/ia32/ia32_trap.c 160801 2006-07-28 20:22:58Z jhb $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/ktr.h> 33#include <sys/sysproto.h> 34#include <sys/kernel.h> 35#include <sys/lock.h> 36#include <sys/mutex.h> --- 54 unchanged lines hidden (view full) --- 91 if (p->p_sysent->sv_mask) 92 code &= p->p_sysent->sv_mask; 93 94 if (code >= p->p_sysent->sv_size) 95 callp = &p->p_sysent->sv_table[0]; 96 else 97 callp = &p->p_sysent->sv_table[code]; 98 |
99 narg = callp->sy_narg; |
100 101 /* copyin and the ktrsyscall()/ktrsysret() code is MP-aware */ 102 if (params != NULL && narg != 0) 103 error = copyin(params, (caddr_t)args, narg * sizeof(int)); 104 else 105 error = 0; 106 107 for (i = 0; i < narg; i++) --- 201 unchanged lines hidden --- |