Unbreak; looks like a not up-to-date diff was commited )-:
authormiod <miod@openbsd.org>
Wed, 13 Dec 2023 12:41:31 +0000 (12:41 +0000)
committermiod <miod@openbsd.org>
Wed, 13 Dec 2023 12:41:31 +0000 (12:41 +0000)
sys/arch/sh/sh/trap.c

index 0002a8c..436a952 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: trap.c,v 1.55 2023/12/12 15:30:56 deraadt Exp $       */
+/*     $OpenBSD: trap.c,v 1.56 2023/12/13 12:41:31 miod Exp $  */
 /*     $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $       */
 /*     $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $      */
 
@@ -557,9 +557,10 @@ syscall(struct proc *p, struct trapframe *tf)
                 * and stack, but rather r7 is skipped and
                 * the entire off_t is on the stack.
                 */
-               if (off_t_arg == 3)
-                       break;
-               *ap++ = tf->tf_r7; argsize -= sizeof(int);
+               if (off_t_arg != 3) {
+                       *ap++ = tf->tf_r7;
+                       argsize -= sizeof(int);
+               }
 
                if (argsize > 0) {
                        if ((error = copyin(params, ap, argsize)))