diff options
author | peter <peter@FreeBSD.org> | 2000-09-03 04:07:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-09-03 04:07:41 +0000 |
commit | 49038354fce27a58251dd57dee598ddbad6f7222 (patch) | |
tree | 1c833e02357ec52e0b05f690ba9c156f32ed029e /sys | |
parent | c779653ba8242e1863746966e8e5aa5677e921bd (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 6 |
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) |