From b4741b160b9bfd682871f4342b4b3ad9e35a7046 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 15 May 2021 13:56:56 +0000 Subject: [PATCH] improve comment regarding child_return() clearing errno-indicating flag --- sys/arch/riscv64/riscv64/syscall.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arch/riscv64/riscv64/syscall.c b/sys/arch/riscv64/riscv64/syscall.c index 61d1e2d9d63..584726da5b9 100644 --- a/sys/arch/riscv64/riscv64/syscall.c +++ b/sys/arch/riscv64/riscv64/syscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.c,v 1.6 2021/05/14 06:48:52 jsg Exp $ */ +/* $OpenBSD: syscall.c,v 1.7 2021/05/15 13:56:56 deraadt Exp $ */ /* * Copyright (c) 2020 Brian Bamsch @@ -125,8 +125,7 @@ child_return(arg) frame->tf_a[0] = 0; frame->tf_a[1] = 1; - // XXX How to signal error? - frame->tf_t[0] = 0; + frame->tf_t[0] = 0; /* no error */ KERNEL_UNLOCK(); -- 2.20.1