From e5667a86635e6332a365fec4b1fd18321f8f12f5 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 13 Dec 2023 12:41:31 +0000 Subject: [PATCH] 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))) -- 2.20.1