Subversion Repositories HelenOS-historic

Rev

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

Rev 1760 Rev 1767
Line 69... Line 69...
69
 
69
 
70
        /* initialize everything */
70
        /* initialize everything */
71
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
71
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
72
 
72
 
73
        for (i=0; i < config.cpu_count; i++) {
73
        for (i=0; i < config.cpu_count; i++) {
74
            cpus[i].stack = (__u8 *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_PANIC);
74
            cpus[i].stack = (__u8 *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ATOMIC);
75
           
75
           
76
            cpus[i].id = i;
76
            cpus[i].id = i;
77
           
77
           
78
            spinlock_initialize(&cpus[i].lock, "cpu_t.lock");
78
            spinlock_initialize(&cpus[i].lock, "cpu_t.lock");
79
 
79