Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3798 → Rev 3783

/branches/sparc/kernel/arch/sparc64/src/cpu/sun4v/cpu.c
51,8 → 51,6
uint64_t myid;
__hypercall_fast_ret1(0, 0, 0, 0, 0, CPU_MYID, &myid);
 
CPU->arch.id = myid;
 
md_node_t node = md_get_root();
 
/* walk through MD, find the current CPU node & its clock-frequency */
93,8 → 91,9
*/
void cpu_print_report(cpu_t *m)
{
printf("cpu%d: Niagara (%d MHz)\n", m->id,
m->arch.clock_frequency / 1000000);
// TODO: modify cpu_t so that it contains a pointer to the MD of
// the represented CPU, from this function print the information found in the MD.
printf("Niagara, 5MHz\n");
}
 
/** @}