From 2373499592909238ef480e464dacea2c66cfd5b1 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Sun, 13 Apr 2003 21:29:11 +0000 Subject: [PATCH] Made vmspace0 non-static. Its useful to be able to identify a vmspace as the kernel vmspace. --- sys/kern/init_main.c | 2 +- sys/sys/proc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 08f273ac0755..d0cfa5219f9d 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -93,7 +93,7 @@ struct ksegrp ksegrp0; static struct procsig procsig0; static struct filedesc0 filedesc0; static struct plimit limit0; -static struct vmspace vmspace0; +struct vmspace vmspace0; struct proc *initproc; int cmask = CMASK; diff --git a/sys/sys/proc.h b/sys/sys/proc.h index bc921a85f638..85ade47cd60d 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -830,6 +830,7 @@ extern struct proc proc0; /* Process slot for swapper. */ extern struct thread thread0; /* Primary thread in proc0 */ extern struct ksegrp ksegrp0; /* Primary ksegrp in proc0 */ extern struct kse kse0; /* Primary kse in proc0 */ +extern struct vmspace vmspace0; /* VM space for proc0. */ extern int hogticks; /* Limit on kernel cpu hogs. */ extern int nprocs, maxproc; /* Current and max number of procs. */ extern int maxprocperuid; /* Max procs per uid. */