Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 don't forget to set fs and gs in the sign...
details: https://anonhg.NetBSD.org/src/rev/c0d74e7ffeb0
branches: trunk
changeset: 524954:c0d74e7ffeb0
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 02 22:33:19 2002 +0000
description:
don't forget to set fs and gs in the signal handler context. this needs
to be pulled up.
diffstat:
sys/arch/i386/i386/freebsd_machdep.c | 6 ++++--
sys/arch/i386/i386/svr4_machdep.c | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (54 lines):
diff -r 23979f480404 -r c0d74e7ffeb0 sys/arch/i386/i386/freebsd_machdep.c
--- a/sys/arch/i386/i386/freebsd_machdep.c Tue Apr 02 22:32:16 2002 +0000
+++ b/sys/arch/i386/i386/freebsd_machdep.c Tue Apr 02 22:33:19 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: freebsd_machdep.c,v 1.31 2001/11/15 07:03:29 lukem Exp $ */
+/* $NetBSD: freebsd_machdep.c,v 1.32 2002/04/02 22:33:19 christos Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_machdep.c,v 1.31 2001/11/15 07:03:29 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_machdep.c,v 1.32 2002/04/02 22:33:19 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vm86.h"
@@ -175,6 +175,8 @@
/*
* Build context to run handler in.
*/
+ tf->tf_gs = GSEL(GUDATA_SEL, SEL_UPL);
+ tf->tf_fs = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_es = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_ds = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_eip = (int)p->p_sigctx.ps_sigcode;
diff -r 23979f480404 -r c0d74e7ffeb0 sys/arch/i386/i386/svr4_machdep.c
--- a/sys/arch/i386/i386/svr4_machdep.c Tue Apr 02 22:32:16 2002 +0000
+++ b/sys/arch/i386/i386/svr4_machdep.c Tue Apr 02 22:33:19 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_machdep.c,v 1.61 2002/03/31 22:21:02 christos Exp $ */
+/* $NetBSD: svr4_machdep.c,v 1.62 2002/04/02 22:33:19 christos Exp $ */
/*-
* Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.61 2002/03/31 22:21:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.62 2002/04/02 22:33:19 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vm86.h"
@@ -426,6 +426,8 @@
/*
* Build context to run handler in.
*/
+ tf->tf_gs = GSEL(GUDATA_SEL, SEL_UPL);
+ tf->tf_fs = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_es = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_ds = GSEL(GUDATA_SEL, SEL_UPL);
tf->tf_eip = (int)p->p_sigctx.ps_sigcode;
Home |
Main Index |
Thread Index |
Old Index