diff options
author | 2004-02-09 14:11:09 +0000 | |
---|---|---|
committer | 2004-02-09 14:11:09 +0000 | |
commit | 2c275033f07bf7256c7a1f5d0a074ee464bfe8f9 (patch) | |
tree | 6040c892eb3b6395f0faa6913fb2a2be4c0d593d | |
parent | be accurate now that SunOS compat output does not exist in MAKEDEV; ok miod@ (diff) | |
download | wireguard-openbsd-2c275033f07bf7256c7a1f5d0a074ee464bfe8f9.tar.xz wireguard-openbsd-2c275033f07bf7256c7a1f5d0a074ee464bfe8f9.zip |
preserve high word of return value like other archs do
-rw-r--r-- | sys/arch/amd64/amd64/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/syscall.c b/sys/arch/amd64/amd64/syscall.c index 3bec8a42ae7..05f2b61479c 100644 --- a/sys/arch/amd64/amd64/syscall.c +++ b/sys/arch/amd64/amd64/syscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.c,v 1.2 2004/02/07 08:00:33 deraadt Exp $ */ +/* $OpenBSD: syscall.c,v 1.3 2004/02/09 14:11:09 mickey Exp $ */ /* $NetBSD: syscall.c,v 1.1 2003/04/26 18:39:32 fvdl Exp $ */ /*- @@ -159,7 +159,7 @@ syscall_plain(frame) #endif /* SYSCALL_DEBUG */ rval[0] = 0; - rval[1] = 0; + rval[1] = frame.tf_rdx; KERNEL_PROC_LOCK(p); error = (*callp->sy_call)(p, argp, rval); KERNEL_PROC_UNLOCK(p); |