Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/arch/amd64 initialize %ds to something vali...
details: https://anonhg.NetBSD.org/src/rev/045d61e3f818
branches: trunk
changeset: 791430:045d61e3f818
user: chs <chs%NetBSD.org@localhost>
date: Mon Nov 18 01:32:32 2013 +0000
description:
initialize %ds to something valid to help ptrace().
diffstat:
sys/compat/linux/arch/amd64/linux_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 115f2304d8bb -r 045d61e3f818 sys/compat/linux/arch/amd64/linux_machdep.c
--- a/sys/compat/linux/arch/amd64/linux_machdep.c Mon Nov 18 01:32:22 2013 +0000
+++ b/sys/compat/linux/arch/amd64/linux_machdep.c Mon Nov 18 01:32:32 2013 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index