From ca3ae8c2c05ceb6791ffaa8584325d169d4401f4 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 3 Sep 2000 04:07:41 +0000 Subject: [PATCH] Find the module metadata before the console init rather than after. This should repair consoles on the Alpha when using dynamic hints. --- sys/alpha/alpha/machdep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index e5124d4d7d55..9218ec37fb86 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)