PERFORCE change 92586 for review
Kip Macy
kmacy at FreeBSD.org
Wed Mar 1 00:06:03 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=92586
Change 92586 by kmacy at kmacy_storage:sun4v_work on 2006/03/01 08:05:52
move tick_init to after console initialization
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/machdep.c#8 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/machdep.c#8 (text+ko) ====
@@ -108,6 +108,7 @@
#include <machine/tstate.h>
#include <machine/upa.h>
#include <machine/ver.h>
+#include <machine/hypervisor_api.h>
typedef int ofw_vec_t(void *);
@@ -215,7 +216,11 @@
if (bootverbose)
printf("machine: %s\n", sparc64_model);
+#ifdef notyet
cpu_identify(rdpr(ver), tick_freq, PCPU_GET(cpuid));
+#else
+ printf("\tUltraSparc T1\n");
+#endif
}
void
@@ -285,7 +290,6 @@
* Initialize Open Firmware (needed for console).
*/
OF_init(vec);
-
/*
* Parse metadata if present and fetch parameters. Must be before the
* console is inited so cninit gets the right value of boothowto.
@@ -314,13 +318,16 @@
}
OF_getprop(child, "clock-frequency", &clock, sizeof(clock));
- tick_init(clock);
+
+
+
/*
* Initialize the console before printing anything.
*/
cninit();
+ tick_init(clock);
/*
* Panic is there is no metadata. Most likely the kernel was booted
* directly, instead of through loader(8).
@@ -409,15 +416,13 @@
/*
* Initialize the message buffer (after setting trap table).
*/
+#if 0
+ printf("msgbuf_init\n");
msgbufinit(msgbufp, MSGBUF_SIZE);
+#endif
mutex_init();
- /*
- * Finish pmap initialization now that we're ready for mutexes.
- */
- PMAP_LOCK_INIT(kernel_pmap);
-
OF_getprop(root, "name", sparc64_model, sizeof(sparc64_model) - 1);
kdb_init();
More information about the p4-projects
mailing list