Subversion Repositories HelenOS-historic

Rev

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

Rev 822 Rev 1138
Line 60... Line 60...
60
 
60
 
61
        /* initialize everything */
61
        /* initialize everything */
62
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
62
        memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0);
63
 
63
 
64
        for (i=0; i < config.cpu_count; i++) {
64
        for (i=0; i < config.cpu_count; i++) {
65
            cpus[i].stack = (__u8 *) PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA | FRAME_PANIC)));
65
            cpus[i].stack = (__u8 *) PA2KA(PFN2ADDR(frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_PANIC)));
66
           
66
           
67
            cpus[i].id = i;
67
            cpus[i].id = i;
68
           
68
           
69
            spinlock_initialize(&cpus[i].lock, "cpu_t.lock");
69
            spinlock_initialize(&cpus[i].lock, "cpu_t.lock");
70
 
70