Call the early tunable setup functions as soon as kern_envp is available.
Some things depend on hz being set not long after this.
This commit is contained in:
parent
0cd2d90484
commit
1d4cc78f8d
@ -662,6 +662,9 @@ alpha_init(pfn, ptb, bim, bip, biv)
|
||||
preload_metadata = (caddr_t)bootinfo.modptr;
|
||||
kern_envp = bootinfo.envp;
|
||||
|
||||
/* Do basic tuning, hz etc */
|
||||
init_param();
|
||||
|
||||
/*
|
||||
* Initalize the (temporary) bootstrap console interface, so
|
||||
* we can use printf until the VM system starts being setup.
|
||||
|
@ -1796,6 +1796,9 @@ init386(first)
|
||||
if (bootinfo.bi_envp)
|
||||
kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE;
|
||||
|
||||
/* Init basic tunables, hz etc */
|
||||
init_param();
|
||||
|
||||
/*
|
||||
* make gdt memory segments, the code segment goes up to end of the
|
||||
* page with etext in it, the data segment goes to the end of
|
||||
|
@ -1796,6 +1796,9 @@ init386(first)
|
||||
if (bootinfo.bi_envp)
|
||||
kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE;
|
||||
|
||||
/* Init basic tunables, hz etc */
|
||||
init_param();
|
||||
|
||||
/*
|
||||
* make gdt memory segments, the code segment goes up to end of the
|
||||
* page with etext in it, the data segment goes to the end of
|
||||
|
@ -391,6 +391,9 @@ ia64_init()
|
||||
preload_metadata = (caddr_t)bootinfo.modptr;
|
||||
kern_envp = bootinfo.envp;
|
||||
|
||||
/* Init basic tunables, including hz */
|
||||
init_param();
|
||||
|
||||
p = getenv("kernelname");
|
||||
if (p)
|
||||
strncpy(kernelname, p, sizeof(kernelname) - 1);
|
||||
|
@ -1860,6 +1860,9 @@ init386(first)
|
||||
if (bootinfo.bi_envp)
|
||||
kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE;
|
||||
|
||||
/* Init basic tunables, hz etc */
|
||||
init_param();
|
||||
|
||||
/*
|
||||
* make gdt memory segments, the code segment goes up to end of the
|
||||
* page with etext in it, the data segment goes to the end of
|
||||
|
@ -1860,6 +1860,9 @@ init386(first)
|
||||
if (bootinfo.bi_envp)
|
||||
kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE;
|
||||
|
||||
/* Init basic tunables, hz etc */
|
||||
init_param();
|
||||
|
||||
/*
|
||||
* make gdt memory segments, the code segment goes up to end of the
|
||||
* page with etext in it, the data segment goes to the end of
|
||||
|
Loading…
Reference in New Issue
Block a user