diff options
| author | njoly <njoly@NetBSD.org> | 2009-05-29 14:19:12 +0000 |
|---|---|---|
| committer | njoly <njoly@NetBSD.org> | 2009-05-29 14:19:12 +0000 |
| commit | d22e6f64ab506ef4ba2c366aca4e71ba2f666207 (patch) | |
| tree | 001b92ea46346e2f01801daa015b32e38001d563 /sys/compat/linux32/arch | |
| parent | 4c494f7678a94d301a0b4643623bcfe63b8f2cbb (diff) | |
Add native to linux siginfo si_status translation, used on i386 and
amd64.
Diffstat (limited to 'sys/compat/linux32/arch')
| -rw-r--r-- | sys/compat/linux32/arch/amd64/linux32_machdep.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/compat/linux32/arch/amd64/linux32_machdep.c b/sys/compat/linux32/arch/amd64/linux32_machdep.c index 98da2e0ba0a..1d399694987 100644 --- a/sys/compat/linux32/arch/amd64/linux32_machdep.c +++ b/sys/compat/linux32/arch/amd64/linux32_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_machdep.c,v 1.21 2009/03/15 15:56:50 cegger Exp $ */ +/* $NetBSD: linux32_machdep.c,v 1.22 2009/05/29 14:19:13 njoly Exp $ */ /*- * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved. @@ -31,7 +31,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.21 2009/03/15 15:56:50 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.22 2009/05/29 14:19:13 njoly Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -56,7 +56,6 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.21 2009/03/15 15:56:50 cegger #include <sys/exec_elf.h> #include <sys/disklabel.h> #include <sys/ioctl.h> -#include <sys/wait.h> #include <miscfs/specfs/specdev.h> #include <machine/netbsd32_machdep.h> @@ -225,11 +224,8 @@ linux32_rt_sendsig(const ksiginfo_t *ksi, const sigset_t *mask) lsi->lsi_pid = ksi->ksi_pid; lsi->lsi_utime = ksi->ksi_utime; lsi->lsi_stime = ksi->ksi_stime; - - /* We use the same codes */ - lsi->lsi_code = ksi->ksi_code; - /* XXX is that right? */ - lsi->lsi_status = WEXITSTATUS(ksi->ksi_status); + lsi->lsi_status = native_to_linux_si_status(ksi->ksi_code, + ksi->ksi_status); break; case LINUX32_SIGIO: lsi->lsi_band = ksi->ksi_band; |
