Changeset ae7ba7b6 in mainline


Ignore:
Timestamp:
2013-02-03T14:00:37Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
260f678
Parents:
a522999
Message:

Use machine ops to get the platform name.

File:
1 edited

Legend:

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

    ra522999 rae7ba7b6  
    5353#include <genarch/drivers/dsrln/dsrlnout.h>
    5454#include <genarch/srln/srln.h>
     55#include <arch/machine_func.h>
    5556
    5657/* Size of the code jumping to the exception handler code
     
    152153void arch_post_smp_init(void)
    153154{
    154         static const char *platform;
    155 
    156155        /* Set platform name. */
    157 #if defined(MACHINE_msim)
    158         platform = "msim";
    159 #endif
    160 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
    161         platform = "malta";
    162 #endif
    163         sysinfo_set_item_data("platform", NULL, (void *) platform,
    164             str_size(platform));
     156        sysinfo_set_item_data("platform", NULL,
     157            (void *) machine_get_platform_name(),
     158            str_size(machine_get_platform_name()));
    165159
    166160#ifdef CONFIG_MSIM_KBD
Note: See TracChangeset for help on using the changeset viewer.