From d0399c07df7b0b3e20240e9809f5c1591ec5ef73 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 13 Dec 2023 12:41:32 +0000 Subject: Unbreak; looks like a not up-to-date diff was commited )-: --- sys/arch/sh/sh/trap.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/sh/sh/trap.c b/sys/arch/sh/sh/trap.c index 0002a8cae56..436a952825b 100644 --- a/sys/arch/sh/sh/trap.c +++ b/sys/arch/sh/sh/trap.c @@ -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))) -- cgit v1.2.3