Subversion Repositories HelenOS-historic

Rev

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

Rev 814 Rev 822
Line 51... Line 51...
51
    int i, j;
51
    int i, j;
52
   
52
   
53
    #ifdef CONFIG_SMP
53
    #ifdef CONFIG_SMP
54
    if (config.cpu_active == 1) {
54
    if (config.cpu_active == 1) {
55
    #endif /* CONFIG_SMP */
55
    #endif /* CONFIG_SMP */
56
        cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count);
56
        cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count,
-
 
57
                    FRAME_ATOMIC);
57
        if (!cpus)
58
        if (!cpus)
58
            panic("malloc/cpus");
59
            panic("malloc/cpus");
59
 
60
 
60
        /* initialize everything */
61
        /* initialize everything */
61
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
62
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);