Subversion Repositories HelenOS-historic

Rev

Rev 1767 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1767 Rev 1780
Line 66... Line 66...
66
                    FRAME_ATOMIC);
66
                    FRAME_ATOMIC);
67
        if (!cpus)
67
        if (!cpus)
68
            panic("malloc/cpus");
68
            panic("malloc/cpus");
69
 
69
 
70
        /* initialize everything */
70
        /* initialize everything */
71
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
71
        memsetb((uintptr_t) 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_ATOMIC);
74
            cpus[i].stack = (uint8_t *) 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