51,6 → 51,8 |
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 */ |
91,9 → 93,8 |
*/ |
void cpu_print_report(cpu_t *m) |
{ |
// 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"); |
printf("cpu%d: Niagara (%d MHz)\n", m->id, |
m->arch.clock_frequency / 1000000); |
} |
|
/** @} |