Subversion Repositories HelenOS

Rev

Rev 646 | Rev 689 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 646 Rev 673
Line 36... Line 36...
36
#include <config.h>
36
#include <config.h>
37
#include <panic.h>
37
#include <panic.h>
38
#include <typedefs.h>
38
#include <typedefs.h>
39
#include <memstr.h>
39
#include <memstr.h>
40
#include <list.h>
40
#include <list.h>
-
 
41
#include <print.h>
41
 
42
 
42
cpu_t *cpus;
43
cpu_t *cpus;
43
 
44
 
44
/** Initialize CPUs
45
/** Initialize CPUs
45
 *
46
 *
Line 86... Line 87...
86
    CPU->tlb_active = 1;
87
    CPU->tlb_active = 1;
87
   
88
   
88
    cpu_identify();
89
    cpu_identify();
89
    cpu_arch_init();
90
    cpu_arch_init();
90
}
91
}
-
 
92
 
-
 
93
/** List all processors. */
-
 
94
void 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
}