diff options
author | jake <jake@FreeBSD.org> | 2003-11-11 06:08:10 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-11-11 06:08:10 +0000 |
commit | 307d8abd077a898d82d0198e166f134095f92e1b (patch) | |
tree | c1ba98a62a6aa920dd31cce7afb86884b7bd273c /sys/sparc64 | |
parent | b1f6b54a9b03a8c61b8ef229f3f4ba40905bcd45 (diff) | |
download | FreeBSD-src-307d8abd077a898d82d0198e166f134095f92e1b.zip FreeBSD-src-307d8abd077a898d82d0198e166f134095f92e1b.tar.gz |
Rearrange slightly so that DELAY(9) works during cninit.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index a099638..f92634a 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -262,6 +262,18 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) } } + init_param1(); + + root = OF_peer(0); + for (child = OF_child(root); child != 0; child = OF_peer(child)) { + OF_getprop(child, "device_type", type, sizeof(type)); + if (strcmp(type, "cpu") == 0) + break; + } + + OF_getprop(child, "clock-frequency", &clock, sizeof(clock)); + tick_init(clock); + /* * Initialize the console before printing anything. */ @@ -286,14 +298,6 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) end = (vm_offset_t)_end; } - root = OF_peer(0); - for (child = OF_child(root); child != 0; child = OF_peer(child)) { - OF_getprop(child, "device_type", type, sizeof(type)); - if (strcmp(type, "cpu") == 0) - break; - } - if (child == 0) - panic("cpu_startup: no cpu\n"); cache_init(child); getenv_int("machdep.use_vis", &cpu_use_vis); @@ -321,7 +325,6 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) /* * Initialize tunables. */ - init_param1(); init_param2(physmem); env = getenv("kernelname"); if (env != NULL) { @@ -382,9 +385,6 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) mutex_init(); intr_init2(); - OF_getprop(PCPU_GET(node), "clock-frequency", &clock, sizeof(clock)); - tick_init(clock); - OF_getprop(root, "name", sparc64_model, sizeof(sparc64_model) - 1); } |