summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-09-03 04:07:41 +0000
committerpeter <peter@FreeBSD.org>2000-09-03 04:07:41 +0000
commit49038354fce27a58251dd57dee598ddbad6f7222 (patch)
tree1c833e02357ec52e0b05f690ba9c156f32ed029e /sys/alpha
parentc779653ba8242e1863746966e8e5aa5677e921bd (diff)
downloadFreeBSD-src-49038354fce27a58251dd57dee598ddbad6f7222.zip
FreeBSD-src-49038354fce27a58251dd57dee598ddbad6f7222.tar.gz
Find the module metadata before the console init rather than after.
This should repair consoles on the Alpha when using dynamic hints.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/machdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index e5124d4..9218ec3 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -687,6 +687,10 @@ alpha_init(pfn, ptb, bim, bip, biv)
*/
cycles_per_sec = hwrpb->rpb_cc_freq;
+ /* Get the loader(8) metadata */
+ preload_metadata = (caddr_t)bootinfo.modptr;
+ kern_envp = bootinfo.envp;
+
/*
* Initalize the (temporary) bootstrap console interface, so
* we can use printf until the VM system starts being setup.
@@ -785,8 +789,6 @@ alpha_init(pfn, ptb, bim, bip, biv)
/* But if the bootstrap tells us otherwise, believe it! */
if (bootinfo.kernend)
kernend = round_page(bootinfo.kernend);
- preload_metadata = (caddr_t)bootinfo.modptr;
- kern_envp = bootinfo.envp;
p = getenv("kernelname");
if (p)
OpenPOWER on IntegriCloud