aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2006-03-28 20:28:31 +0000
committerMarius Strobl <marius@FreeBSD.org>2006-03-28 20:28:31 +0000
commit056b9d29b69e64eda7deba92590ee5c685c616c3 (patch)
tree2ac1bd9ca57be0a445d607a026f48908f262b0c7 /sys/sparc64
parent20396fc1509001613727e96c6c68530b8bd18dc5 (diff)
downloadsrc-056b9d29b69e64eda7deba92590ee5c685c616c3.tar.gz
src-056b9d29b69e64eda7deba92590ee5c685c616c3.zip
- Add a comment describing why tick_init() is called before cninit().
- Fix a typo in another comment.
Notes
Notes: svn path=/head/; revision=157227
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/machdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index 762472514353..e5248b7d7b0d 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -321,6 +321,11 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec)
break;
}
+ /*
+ * Initialize the tick counter. Must be before the console is inited
+ * in order to provide the low-level console drivers with a working
+ * DELAY().
+ */
OF_getprop(child, "clock-frequency", &clock, sizeof(clock));
tick_init(clock);
@@ -330,7 +335,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec)
cninit();
/*
- * Panic is there is no metadata. Most likely the kernel was booted
+ * Panic if there is no metadata. Most likely the kernel was booted
* directly, instead of through loader(8).
*/
if (mdp == NULL || kmdp == NULL) {