Define proc0paddr. Call init_param() as early as possible.

This commit is contained in:
Jake Burkholder 2001-08-03 01:11:49 +00:00
parent d2734d58ab
commit 3db6135894
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81085

View File

@ -81,6 +81,7 @@ struct mtx sched_lock;
struct globaldata __globaldata;
char user0[UPAGES * PAGE_SIZE];
struct user *proc0paddr;
vm_offset_t clean_sva;
vm_offset_t clean_eva;
@ -271,6 +272,8 @@ sparc64_init(struct bootinfo *bi, ofw_vec_t *vec)
panic("sparc64_init: no loader metadata");
preload_metadata = (caddr_t)bi->bi_metadata;
init_param();
#ifdef DDB
kdb_init();
#endif
@ -296,6 +299,7 @@ sparc64_init(struct bootinfo *bi, ofw_vec_t *vec)
* Initialize proc0 stuff (p_contested needs to be done early).
*/
LIST_INIT(&proc0.p_contested);
proc0paddr = (struct user *)user0;
proc0.p_addr = (struct user *)user0;
tf = (struct trapframe *)(user0 + UPAGES * PAGE_SIZE - sizeof(*tf));
proc0.p_frame = tf;