Subversion Repositories HelenOS

Rev

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

Rev 3582 Rev 3742
Line 84... Line 84...
84
       
84
       
85
#ifdef CONFIG_SMP
85
#ifdef CONFIG_SMP
86
    }
86
    }
87
#endif /* CONFIG_SMP */
87
#endif /* CONFIG_SMP */
88
 
88
 
89
    CPU = &cpus[config.cpu_active-1];
89
    CPU = &cpus[config.cpu_active - 1];
90
   
90
   
91
    CPU->active = 1;
91
    CPU->active = 1;
92
    CPU->tlb_active = 1;
92
    CPU->tlb_active = 1;
93
   
93
   
94
    cpu_identify();
94
    cpu_identify();
Line 97... Line 97...
97
 
97
 
98
/** List all processors. */
98
/** List all processors. */
99
void cpu_list(void)
99
void cpu_list(void)
100
{
100
{
101
    unsigned int i;
101
    unsigned int i;
-
 
102
 
102
    for (i = 0; i < config.cpu_count; i++) {
103
    for (i = 0; i < config.cpu_count; i++) {
103
        if (cpus[i].active)
104
        if (cpus[i].active)
104
            cpu_print_report(&cpus[i]);
105
            cpu_print_report(&cpus[i]);
105
        else
106
        else
106
            printf("cpu%u: not active\n", i);
107
            printf("cpu%u: not active\n", i);