From: deraadt Date: Tue, 12 Dec 2023 23:43:35 +0000 (+0000) Subject: two syscall(2) removal chunks got lost X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b7291cbabd1c134cf2c11693f743c85ea7c044d2;p=openbsd two syscall(2) removal chunks got lost --- diff --git a/sys/arch/arm64/arm64/syscall.c b/sys/arch/arm64/arm64/syscall.c index eec3777d2d8..7a9c1b683ee 100644 --- a/sys/arch/arm64/arm64/syscall.c +++ b/sys/arch/arm64/arm64/syscall.c @@ -1,4 +1,4 @@ -/* $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 * @@ -33,7 +33,7 @@ svc_handler(trapframe_t *frame) { 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]; diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 7dbf244a2c3..cfaa0b4d266 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -1109,7 +1109,7 @@ syscall(struct trapframe *tf, register_t code, register_t pc) 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; @@ -1162,7 +1162,7 @@ syscall(struct trapframe *tf, register_t code, register_t pc) 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;