artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcba609
)
improve comment regarding child_return() clearing errno-indicating flag
author
deraadt
<deraadt@openbsd.org>
Sat, 15 May 2021 13:56:56 +0000
(13:56 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 15 May 2021 13:56:56 +0000
(13:56 +0000)
sys/arch/riscv64/riscv64/syscall.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/syscall.c
b/sys/arch/riscv64/riscv64/syscall.c
index
61d1e2d
..
584726d
100644
(file)
--- 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 <bbamsch@google.com>
@@
-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();