Changeset c7a145e in mainline


Ignore:
Timestamp:
2016-12-23T20:50:48Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a91d719
Parents:
0195374
Message:

Propagate boot arguments from OBP to sysinfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sparc64.c

    r0195374 rc7a145e  
    3636#include <arch/arch.h>
    3737#include <mm/slab.h>
     38#include <sysinfo/sysinfo.h>
    3839#include <config.h>
    3940#include <arch/proc/thread.h>
     
    8990{
    9091        SPARC64_ARCH_OP(post_smp_init);
     92
     93        ofw_tree_node_t *options = ofw_tree_lookup("/options");
     94        if (options) {
     95                ofw_tree_property_t *prop;
     96               
     97                prop = ofw_tree_getprop(options, "boot-args");
     98                if (prop && prop->value) {
     99                        sysinfo_set_item_data("boot_args", NULL, prop->value,
     100                            prop->size);
     101                }
     102        }
    91103}
    92104
Note: See TracChangeset for help on using the changeset viewer.