summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-03-28 20:28:31 +0000
committermarius <marius@FreeBSD.org>2006-03-28 20:28:31 +0000
commit8aaa7c780cccd1673e8bda5bb9720c866af7cc50 (patch)
tree2ac1bd9ca57be0a445d607a026f48908f262b0c7 /sys/sparc64
parentd6a3e171f0206d5499e10efc06a8406d33ac5803 (diff)
downloadFreeBSD-src-8aaa7c780cccd1673e8bda5bb9720c866af7cc50.zip
FreeBSD-src-8aaa7c780cccd1673e8bda5bb9720c866af7cc50.tar.gz
- Add a comment describing why tick_init() is called before cninit().
- Fix a typo in another comment.
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 7624725..e5248b7 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) {
OpenPOWER on IntegriCloud