Module Name: src Committed By: njoly Date: Thu Apr 23 17:37:51 UTC 2009
Modified Files: src/sys/compat/linux/arch/i386: linux_machdep.c Log Message: Convert si_code value from native to linux. To generate a diff of this commit: cvs rdiff -u -r1.143 -r1.144 src/sys/compat/linux/arch/i386/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/linux/arch/i386/linux_machdep.c diff -u src/sys/compat/linux/arch/i386/linux_machdep.c:1.143 src/sys/compat/linux/arch/i386/linux_machdep.c:1.144 --- src/sys/compat/linux/arch/i386/linux_machdep.c:1.143 Sat Mar 21 14:41:30 2009 +++ src/sys/compat/linux/arch/i386/linux_machdep.c Thu Apr 23 17:37:51 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.143 2009/03/21 14:41:30 ad Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.144 2009/04/23 17:37:51 njoly Exp $ */ /*- * Copyright (c) 1995, 2000, 2008, 2009 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.143 2009/03/21 14:41:30 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.144 2009/04/23 17:37:51 njoly Exp $"); #if defined(_KERNEL_OPT) #include "opt_vm86.h" @@ -284,7 +284,7 @@ */ (void)memset(lsi = &frame.sf_si, 0, sizeof(frame.sf_si)); lsi->lsi_errno = native_to_linux_errno[ksi->ksi_errno]; - lsi->lsi_code = ksi->ksi_code; + lsi->lsi_code = native_to_linux_si_code(ksi->ksi_code); switch (lsi->lsi_signo = frame.sf_sig) { case LINUX_SIGILL: case LINUX_SIGFPE: