Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/arch/sparc64/sparc64 Pull up revision 1.177 (reques...



details:   https://anonhg.NetBSD.org/src/rev/41fed66554d8
branches:  netbsd-2-0
changeset: 564726:41fed66554d8
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Mar 20 11:58:39 2005 +0000

description:
Pull up revision 1.177 (requested by chs in ticket #1160):
define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).

diffstat:

 sys/arch/sparc64/sparc64/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 20951dde5e2e -r 41fed66554d8 sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c        Sun Mar 20 11:58:32 2005 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c        Sun Mar 20 11:58:39 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.165 2004/03/24 15:34:51 atatat Exp $ */
+/*     $NetBSD: machdep.c,v 1.165.2.1 2005/03/20 11:58:39 tron Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.165 2004/03/24 15:34:51 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.165.2.1 2005/03/20 11:58:39 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -1811,7 +1811,7 @@
 
        /* First ensure consistent stack state (see sendsig). */ /* XXX? */
        write_user_windows();
-       if (rwindow_save(l))
+       if ((l->l_flag & L_SA_SWITCHING) == 0 && rwindow_save(l))
                sigexit(l, SIGILL);
 
        /* For now: Erase any random indicators for optional state. */



Home | Main Index | Thread Index | Old Index