mirror of
https://github.com/opnsense/src.git
synced 2026-04-12 21:06:41 -04:00
Complain if we cannot find loader(8) metadata.
This commit is contained in:
parent
ca3ae8c2c0
commit
da65de1dee
3 changed files with 6 additions and 0 deletions
|
|
@ -789,6 +789,8 @@ alpha_init(pfn, ptb, bim, bip, biv)
|
|||
/* But if the bootstrap tells us otherwise, believe it! */
|
||||
if (bootinfo.kernend)
|
||||
kernend = round_page(bootinfo.kernend);
|
||||
if (preload_metadata == NULL)
|
||||
printf("WARNING: loader(8) metadata is missing!\n");
|
||||
|
||||
p = getenv("kernelname");
|
||||
if (p)
|
||||
|
|
|
|||
|
|
@ -1829,6 +1829,8 @@ init386(first)
|
|||
if (bootinfo.bi_modulep) {
|
||||
preload_metadata = (caddr_t)bootinfo.bi_modulep + KERNBASE;
|
||||
preload_bootstrap_relocate(KERNBASE);
|
||||
} else {
|
||||
printf("WARNING: loader(8) metadata is missing!\n");
|
||||
}
|
||||
if (bootinfo.bi_envp)
|
||||
kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE;
|
||||
|
|
|
|||
|
|
@ -1829,6 +1829,8 @@ init386(first)
|
|||
if (bootinfo.bi_modulep) {
|
||||
preload_metadata = (caddr_t)bootinfo.bi_modulep + KERNBASE;
|
||||
preload_bootstrap_relocate(KERNBASE);
|
||||
} else {
|
||||
printf("WARNING: loader(8) metadata is missing!\n");
|
||||
}
|
||||
if (bootinfo.bi_envp)
|
||||
kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue