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:
peter 2001-07-26 23:06:44 +00:00
parent 0cd2d90484
commit 1d4cc78f8d
6 changed files with 18 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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