Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3581 → Rev 3582

/branches/sparc/kernel/arch/sparc64/include/cpu_node.h
37,19 → 37,11
 
#include <genarch/ofw/ofw_tree.h>
 
/*
* Name of the CPU OFW node property, which holds the MID (processor ID).
* US uses UPA, US3 uses Fireplane, hence the properties names are different.
*/
#if defined (US)
#define PORTID_NAME "upa-portid"
#elif defined (US3)
#define PORTID_NAME "portid"
#endif
 
/** Finds the parent node of all the CPU nodes.
/** Finds the parent node of all the CPU nodes (nodes named "cpu" or "cmp").
*
* Depending on the OFW version, CPUS can be at "/" or at "/ssm@0,0".
* Depending on the machine type (and possibly the OFW version), CPUs can be
* at "/" or at "/ssm@0,0".
*/
static inline ofw_tree_node_t *cpus_parent(void)
{