-/* $OpenBSD: syscall.c,v 1.15 2023/12/12 15:30:55 deraadt Exp $ */
+/* $OpenBSD: syscall.c,v 1.16 2023/12/12 23:43:35 deraadt Exp $ */
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
*
{
struct proc *p = curproc;
const struct sysent *callp;
- int code, error = ENOSYS, indirect = -1;
+ int code, error = ENOSYS;
u_int nap = 8, nargs;
register_t *ap, *args, copyargs[MAXARGS], rval[2];
-/* $OpenBSD: trap.c,v 1.116 2023/12/12 15:30:56 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.117 2023/12/12 23:43:35 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */
/*
int64_t *ap;
const struct sysent *callp;
struct proc *p = curproc;
- int error = ENOSYS, new, indirect = -1;
+ int error = ENOSYS, new;
register_t args[8];
register_t rval[2];
register_t *argp;
rval[0] = 0;
rval[1] = 0;
- error = mi_syscall(p, code, indirect, callp, args, rval);
+ error = mi_syscall(p, code, callp, args, rval);
switch (error) {
vaddr_t dest;