Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3466 → Rev 3467

/branches/sparc/kernel/arch/sparc64/src/cpu/cpu.c
37,6 → 37,7
#include <genarch/ofw/ofw_tree.h>
#include <arch/drivers/tick.h>
#include <print.h>
#include <arch/cpu_node.h>
 
/** Perform sparc64 specific initialization of the processor structure for the
* current processor.
54,11 → 55,11
/*
* Detect processor frequency.
*/
node = ofw_tree_find_child_by_device_type(ofw_tree_lookup("/"), "cpu");
node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
while (node) {
ofw_tree_property_t *prop;
prop = ofw_tree_getprop(node, "upa-portid");
 
prop = ofw_tree_getprop(node, PORTID_NAME);
if (prop && prop->value) {
mid = *((uint32_t *) prop->value);
if (mid == CPU->arch.mid) {