summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-10-09 00:31:06 +0000
committermsmith <msmith@FreeBSD.org>1998-10-09 00:31:06 +0000
commit0d4797aebc4ad480e6cdd4e03e1bf50e864c74c5 (patch)
treeb8c3f235404feb876a56eef15bed5be305bc6d08 /sys/amd64
parent6f4943246a5a71631ff1e0b39274018b3f6de3e3 (diff)
downloadFreeBSD-src-0d4797aebc4ad480e6cdd4e03e1bf50e864c74c5.zip
FreeBSD-src-0d4797aebc4ad480e6cdd4e03e1bf50e864c74c5.tar.gz
Initialise kernel environment and module metadata pointers.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index d2d2025..75698ca 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)
OpenPOWER on IntegriCloud