Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax Clear proc0 uarea, otherwise subsequent pro...



details:   https://anonhg.NetBSD.org/src/rev/18c2d5c4fc9f
branches:  trunk
changeset: 477550:18c2d5c4fc9f
user:      ragge <ragge%NetBSD.org@localhost>
date:      Wed Oct 20 20:42:29 1999 +0000

description:
Clear proc0 uarea, otherwise subsequent processes will inherit the
virtual timers and get unwanted signals. This has been around since
long time back...

diffstat:

 sys/arch/vax/vax/locore.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 8f872a264ac2 -r 18c2d5c4fc9f sys/arch/vax/vax/locore.c
--- a/sys/arch/vax/vax/locore.c Wed Oct 20 17:57:55 1999 +0000
+++ b/sys/arch/vax/vax/locore.c Wed Oct 20 20:42:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.c,v 1.40 1999/08/27 20:02:05 ragge Exp $        */
+/*     $NetBSD: locore.c,v 1.41 1999/10/20 20:42:29 ragge Exp $        */
 /*
  * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -33,10 +33,10 @@
                
 
 #include <sys/param.h>
-#include <sys/types.h>
 #include <sys/reboot.h>
 #include <sys/device.h>
 #include <sys/systm.h>
+#include <sys/user.h>
 
 #include <vm/vm.h>
 
@@ -224,6 +224,9 @@
 
        proc0.p_addr = (void *)proc0paddr; /* XXX */
 
+       /* Clear the used parts of the uarea except for the pcb */
+       bzero(&proc0.p_addr->u_stats, sizeof(struct user) - sizeof(struct pcb));
+
        pmap_bootstrap();
 
        /* Now running virtual. set red zone for proc0 */



Home | Main Index | Thread Index | Old Index