diff options
author | Mike Smith <msmith@FreeBSD.org> | 1998-10-09 00:31:06 +0000 |
---|---|---|
committer | Mike Smith <msmith@FreeBSD.org> | 1998-10-09 00:31:06 +0000 |
commit | d7a5acb5ec94cc9edbaae6a0ce9d9bd19346f601 (patch) | |
tree | c42d34432189afd57bdc489dfc430acb988ec622 /sys/amd64/amd64/machdep.c | |
parent | 8aeb56c2db67439e305858d21bc52ae58a98e952 (diff) | |
download | src-d7a5acb5ec94cc9edbaae6a0ce9d9bd19346f601.tar.gz src-d7a5acb5ec94cc9edbaae6a0ce9d9bd19346f601.zip |
Initialise kernel environment and module metadata pointers.
Notes
Notes:
svn path=/head/; revision=40089
Diffstat (limited to 'sys/amd64/amd64/machdep.c')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index d2d20259f540..75698ca31aca 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.310 1998/09/25 17:34:48 peter Exp $ + * $Id: machdep.c,v 1.311 1998/09/29 11:20:16 abial Exp $ */ #include "apm.h" @@ -60,6 +60,7 @@ #include <sys/sysproto.h> #include <sys/signalvar.h> #include <sys/kernel.h> +#include <sys/linker.h> #include <sys/proc.h> #include <sys/buf.h> #include <sys/reboot.h> @@ -1611,6 +1612,10 @@ init386(first) #ifdef VM86 proc0.p_addr->u_pcb.pcb_ext = 0; #endif + + /* Export kernel environment and module metadata information */ + module_metadata = (caddr_t)bootinfo.bi_modulep; + kern_envp = (caddr_t)bootinfo.bi_envp; } #if defined(I586_CPU) && !defined(NO_F00F_HACK) |