diff options
author | jake <jake@FreeBSD.org> | 2001-08-03 01:11:49 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-08-03 01:11:49 +0000 |
commit | 97f76f62e05b1c512f4074afdde8da345990321e (patch) | |
tree | 424a1accd735d428babbd09fde4ee62d2b185b3d | |
parent | 38dc4c6e02fc27a9695fb34ccf17c226386d002c (diff) | |
download | FreeBSD-src-97f76f62e05b1c512f4074afdde8da345990321e.zip FreeBSD-src-97f76f62e05b1c512f4074afdde8da345990321e.tar.gz |
Define proc0paddr. Call init_param() as early as possible.
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index 2ae5fe3..d831b40 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -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; |