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 Lock the proclist as appropriate.



details:   https://anonhg.NetBSD.org/src/rev/dec45df038b8
branches:  trunk
changeset: 474900:dec45df038b8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jul 25 18:05:31 1999 +0000

description:
Lock the proclist as appropriate.

diffstat:

 sys/arch/i386/i386/gdt.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 73e5487b4580 -r dec45df038b8 sys/arch/i386/i386/gdt.c
--- a/sys/arch/i386/i386/gdt.c  Sun Jul 25 17:36:40 1999 +0000
+++ b/sys/arch/i386/i386/gdt.c  Sun Jul 25 18:05:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gdt.c,v 1.19 1999/07/20 23:07:12 thorpej Exp $ */
+/*     $NetBSD: gdt.c,v 1.20 1999/07/25 18:05:31 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -111,6 +111,7 @@
        pmap_t pmap;
        int slot = NGDT, oslot;
 
+       proclist_lock_read();
        for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
                pcb = &p->p_addr->u_pcb;
                pmap = p->p_vmspace->vm_map.pmap;
@@ -156,6 +157,7 @@
                        panic("gdt_compact botch 4");
        gdt_next = gdt_count;
        gdt_free = GNULL_SEL;
+       proclist_unlock_read();
 }
 
 /*



Home | Main Index | Thread Index | Old Index