Module Name: src Committed By: chs Date: Mon Nov 18 01:32:32 UTC 2013
Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: initialize %ds to something valid to help ptrace(). To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/compat/linux/arch/amd64/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/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.41 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.42 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.41 Wed Oct 23 20:18:51 2013 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Mon Nov 18 01:32:32 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.41 2013/10/23 20:18:51 drochner Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.42 2013/11/18 01:32:32 chs Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.41 2013/10/23 20:18:51 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.42 2013/11/18 01:32:32 chs Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -116,7 +116,7 @@ linux_setregs(struct lwp *l, struct exec tf->tf_rflags = PSL_USERSET; tf->tf_cs = GSEL(GUCODE_SEL, SEL_UPL); tf->tf_ss = GSEL(GUDATA_SEL, SEL_UPL); - tf->tf_ds = 0; + tf->tf_ds = GSEL(GUDATA_SEL, SEL_UPL); tf->tf_es = 0; cpu_fsgs_zero(l);