Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/systrace we have space for 2 more ar...
details: https://anonhg.NetBSD.org/src/rev/ca1f10a71ce6
branches: trunk
changeset: 336605:ca1f10a71ce6
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 07 17:47:09 2015 +0000
description:
we have space for 2 more arguments so use it.
diffstat:
external/cddl/osnet/dev/systrace/systrace.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 2880438b9f3c -r ca1f10a71ce6 external/cddl/osnet/dev/systrace/systrace.c
--- a/external/cddl/osnet/dev/systrace/systrace.c Sat Mar 07 16:50:10 2015 +0000
+++ b/external/cddl/osnet/dev/systrace/systrace.c Sat Mar 07 17:47:09 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace.c,v 1.5 2015/03/07 15:14:09 christos Exp $ */
+/* $NetBSD: systrace.c,v 1.6 2015/03/07 17:47:09 christos Exp $ */
/*
* CDDL HEADER START
@@ -139,17 +139,18 @@
const void *params, const register_t *ret, int error)
{
size_t n_args = 0;
- uintptr_t uargs[SYS_MAXSYSARGS];
+ uintptr_t uargs[SYS_MAXSYSARGS + 3];
memset(uargs, 0, sizeof(uargs));
- if (params) {
+ if (ret) {
/* entry syscall, convert params */
systrace_args(sysnum, params, uargs, &n_args);
} else {
- /* return syscall, set values (XXX: errno?) */
+ /* return syscall, set values and params: */
uargs[0] = ret[0];
uargs[1] = ret[1];
uargs[2] = error;
+ systrace_args(sysnum, params, uargs + 3, &n_args);
}
/* Process the probe using the converted argments. */
/* XXX: fix for more arguments! */
Home |
Main Index |
Thread Index |
Old Index