Changeset 965dc18 in mainline for boot/genarch/ofw_tree.c
- Timestamp:
- 2008-12-05T19:59:03Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49093a4
- Parents:
- 0258e67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/genarch/ofw_tree.c
r0258e67 r965dc18 121 121 memcpy(current_node->da_name, &path[i], len); 122 122 current_node->da_name[len] = '\0'; 123 124 123 125 124 /* … … 220 219 { 221 220 ofw_tree_node_t *root; 221 phandle ssm_node; 222 ofw_tree_node_t *ssm; 222 223 223 224 root = ofw_tree_node_alloc(); 224 225 if (root) 225 226 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 } 226 243 227 244 return root;
Note:
See TracChangeset
for help on using the changeset viewer.