Changeset 0132630 in mainline for generic/src/cpu/cpu.c


Ignore:
Timestamp:
2006-01-03T21:55:31Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b524c5e0
Parents:
93e90c7
Message:

Add 'version' and 'cpus' kconsole commands.
Remove leading p from names of p* commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/cpu/cpu.c

    r93e90c7 r0132630  
    3939#include <memstr.h>
    4040#include <list.h>
     41#include <print.h>
    4142
    4243cpu_t *cpus;
     
    8990        cpu_arch_init();
    9091}
     92
     93/** List all processors. */
     94void cpu_list(void)
     95{
     96        int i;
     97
     98        for (i = 0; i < config.cpu_count; i++) {
     99                if (cpus[i].active)
     100                        cpu_print_report(&cpus[i]);
     101                else
     102                        printf("cpu%d: not active\n", i);
     103        }
     104}
Note: See TracChangeset for help on using the changeset viewer.