mp_startup.c (2449e17f) mp_startup.c (5cff7825)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 101 unchanged lines hidden (view full) ---

110 processor_info_t *pi = &cp->cpu_type_info;
111 char buf[CPU_IDSTRLEN];
112
113 /*
114 * Get clock-frequency property for the CPU.
115 */
116 pi->pi_clock = cpu_freq;
117
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 101 unchanged lines hidden (view full) ---

110 processor_info_t *pi = &cp->cpu_type_info;
111 char buf[CPU_IDSTRLEN];
112
113 /*
114 * Get clock-frequency property for the CPU.
115 */
116 pi->pi_clock = cpu_freq;
117
118 /*
119 * Current frequency in Hz.
120 */
121 pi->pi_curr_clock = cpu_freq_hz;
122
118 (void) strcpy(pi->pi_processor_type, "i386");
119 if (fpu_exists)
120 (void) strcpy(pi->pi_fputypes, "i387 compatible");
121
122 (void) cpuid_getidstr(cp, buf, sizeof (buf));
123
124 cp->cpu_idstr = kmem_alloc(strlen(buf) + 1, KM_SLEEP);
125 (void) strcpy(cp->cpu_idstr, buf);

--- 1441 unchanged lines hidden ---
123 (void) strcpy(pi->pi_processor_type, "i386");
124 if (fpu_exists)
125 (void) strcpy(pi->pi_fputypes, "i387 compatible");
126
127 (void) cpuid_getidstr(cp, buf, sizeof (buf));
128
129 cp->cpu_idstr = kmem_alloc(strlen(buf) + 1, KM_SLEEP);
130 (void) strcpy(cp->cpu_idstr, buf);

--- 1441 unchanged lines hidden ---