From 68db6cea99cac8515b99cb917214cb973f47decc Mon Sep 17 00:00:00 2001 From: Luoqi Chen Date: Thu, 6 May 1999 00:39:00 +0000 Subject: [PATCH] Do not set curproc until proc0 is fully initialized (in proc0_init()). --- sys/amd64/amd64/machdep.c | 3 +-- sys/i386/i386/machdep.c | 3 +-- sys/pc98/i386/machdep.c | 3 +-- sys/pc98/pc98/machdep.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index ac02b7abdbab..151423fd3a79 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.331 1999/04/26 08:57:51 peter Exp $ + * $Id: machdep.c,v 1.332 1999/04/28 01:03:21 luoqi Exp $ */ #include "apm.h" @@ -1615,7 +1615,6 @@ init386(first) #ifdef VM86 proc0.p_addr->u_pcb.pcb_ext = 0; #endif - SET_CURPROC(&proc0); /* Sigh, relocate physical addresses left from bootstrap */ if (bootinfo.bi_modulep) { diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index ac02b7abdbab..151423fd3a79 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.331 1999/04/26 08:57:51 peter Exp $ + * $Id: machdep.c,v 1.332 1999/04/28 01:03:21 luoqi Exp $ */ #include "apm.h" @@ -1615,7 +1615,6 @@ init386(first) #ifdef VM86 proc0.p_addr->u_pcb.pcb_ext = 0; #endif - SET_CURPROC(&proc0); /* Sigh, relocate physical addresses left from bootstrap */ if (bootinfo.bi_modulep) { diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 57bd14010c6a..759681e89e69 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.113 1999/04/20 09:08:51 kato Exp $ + * $Id: machdep.c,v 1.114 1999/04/28 08:03:54 kato Exp $ */ #include "apm.h" @@ -1669,7 +1669,6 @@ init386(first) #ifdef VM86 proc0.p_addr->u_pcb.pcb_ext = 0; #endif - SET_CURPROC(&proc0); /* Sigh, relocate physical addresses left from bootstrap */ if (bootinfo.bi_modulep) { diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 57bd14010c6a..759681e89e69 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.113 1999/04/20 09:08:51 kato Exp $ + * $Id: machdep.c,v 1.114 1999/04/28 08:03:54 kato Exp $ */ #include "apm.h" @@ -1669,7 +1669,6 @@ init386(first) #ifdef VM86 proc0.p_addr->u_pcb.pcb_ext = 0; #endif - SET_CURPROC(&proc0); /* Sigh, relocate physical addresses left from bootstrap */ if (bootinfo.bi_modulep) {