Date: Wed, 1 Mar 2006 08:06:02 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92586 for review Message-ID: <200603010806.k21862MR008495@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92586 Change 92586 by kmacy@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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603010806.k21862MR008495>