diff options
author | Marius Strobl <marius@FreeBSD.org> | 2006-03-28 20:28:31 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2006-03-28 20:28:31 +0000 |
commit | 056b9d29b69e64eda7deba92590ee5c685c616c3 (patch) | |
tree | 2ac1bd9ca57be0a445d607a026f48908f262b0c7 /sys/sparc64 | |
parent | 20396fc1509001613727e96c6c68530b8bd18dc5 (diff) | |
download | src-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.c | 7 |
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) { |