Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Make sure to reset the CPU context in c...



details:   https://anonhg.NetBSD.org/src/rev/b2e8c40a2525
branches:  trunk
changeset: 485061:b2e8c40a2525
user:      pk <pk%NetBSD.org@localhost>
date:      Mon Apr 17 20:32:00 2000 +0000

description:
Make sure to reset the CPU context in ctx_free().

diffstat:

 sys/arch/sparc/sparc/pmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 408e1fdacd18 -r b2e8c40a2525 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Mon Apr 17 19:35:12 2000 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Mon Apr 17 20:32:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.155 2000/01/28 13:06:02 pk Exp $ */
+/*     $NetBSD: pmap.c,v 1.156 2000/04/17 20:32:00 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -1980,7 +1980,6 @@
                if (CPU_ISSUN4M)
                        tlb_flush_context();
 #endif
-               setcontext(0);
        } else {
 #if defined(SUN4M)
                if (CPU_ISSUN4M) {
@@ -1991,8 +1990,9 @@
                        tlb_flush_context();
                }
 #endif
-               CHANGE_CONTEXTS(oldc, 0);
-       }
+       }
+       setcontext(oldc);
+
        c->c_nextfree = ctx_freelist;
        ctx_freelist = c;
 



Home | Main Index | Thread Index | Old Index