Changeset 965dc18 in mainline for boot/genarch/ofw_tree.c


Ignore:
Timestamp:
2008-12-05T19:59:03Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49093a4
Parents:
0258e67
Message:

Merge sparc branch to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw_tree.c

    r0258e67 r965dc18  
    121121                memcpy(current_node->da_name, &path[i], len);
    122122                current_node->da_name[len] = '\0';
    123        
    124123       
    125124                /*
     
    220219{
    221220        ofw_tree_node_t *root;
     221        phandle ssm_node;
     222        ofw_tree_node_t *ssm;
    222223       
    223224        root = ofw_tree_node_alloc();
    224225        if (root)
    225226                ofw_tree_node_process(root, NULL, ofw_root);
     227
     228        /*
     229         * The firmware client interface does not automatically include the
     230         * "ssm" node in the list of children of "/". A nasty yet working
     231         * solution is to explicitly stick "ssm" to the OFW tree.
     232         */
     233        ssm_node = ofw_find_device("/ssm@0,0");
     234        if (ssm_node != -1) {
     235                ssm = ofw_tree_node_alloc();
     236                if (ssm) {
     237                        ofw_tree_node_process(
     238                                ssm, root, ofw_find_device("/ssm@0,0"));
     239                        ssm->peer = root->child;
     240                        root->child = ssm;
     241                }
     242        }
    226243       
    227244        return root;
Note: See TracChangeset for help on using the changeset viewer.