Changeset 1b43a04 in mainline for kernel/genarch/src/ofw/ofw_tree.c


Ignore:
Timestamp:
2006-11-05T13:49:23Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b63a7cc
Parents:
14de0dd8
Message:

Modify selected function to consume less stack space.

Avoid flushw instruction in the sparc64 loader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/ofw/ofw_tree.c

    r14de0dd8 r1b43a04  
    3838#include <genarch/ofw/ofw_tree.h>
    3939#include <arch/memstr.h>
     40#include <mm/slab.h>
    4041#include <func.h>
    4142#include <print.h>
     
    237238static void ofw_tree_node_print(const ofw_tree_node_t *node, const char *path)
    238239{
    239         char p[PATH_MAX_LEN];
    240        
     240        char *p;
     241
     242        p = (char *) malloc(PATH_MAX_LEN, 0);
     243
    241244        if (node->parent) {
    242245                snprintf(p, PATH_MAX_LEN, "%s/%s", path, node->da_name);
     
    249252        if (node->child)
    250253                ofw_tree_node_print(node->child, p);
    251        
     254
    252255        if (node->peer)
    253256                ofw_tree_node_print(node->peer, path);
     257
     258        free(p);
    254259}
    255260
Note: See TracChangeset for help on using the changeset viewer.