Subversion Repositories HelenOS-historic

Rev

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

Rev 534 Rev 548
Line 58... Line 58...
58
 
58
 
59
        /* initialize everything */
59
        /* initialize everything */
60
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
60
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
61
 
61
 
62
        for (i=0; i < config.cpu_count; i++) {
62
        for (i=0; i < config.cpu_count; i++) {
63
            cpus[i].stack = (__u8 *) frame_alloc(FRAME_KA | FRAME_PANIC,0);
63
            cpus[i].stack = (__u8 *) frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME);
64
            if (!cpus[i].stack)
64
            if (!cpus[i].stack)
65
                panic("malloc/cpus[%d].stack\n", i);
65
                panic("malloc/cpus[%d].stack\n", i);
66
           
66
           
67
            cpus[i].id = i;
67
            cpus[i].id = i;
68
           
68