Subversion Repositories HelenOS

Rev

Rev 4055 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4055 Rev 4537
Line 59... Line 59...
59
 
59
 
60
/** Determine number of processors. */
60
/** Determine number of processors. */
61
void smp_init(void)
61
void smp_init(void)
62
{
62
{
63
    ofw_tree_node_t *node;
63
    ofw_tree_node_t *node;
64
    count_t cnt = 0;
64
    size_t cnt = 0;
65
   
65
   
66
    if (is_us() || is_us_iii()) {
66
    if (is_us() || is_us_iii()) {
67
        node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
67
        node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
68
        while (node) {
68
        while (node) {
69
            cnt++;
69
            cnt++;