Subversion Repositories HelenOS

Rev

Rev 4339 | Rev 4342 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4339 Rev 4341
Line 74... Line 74...
74
 
74
 
75
void arch_post_mm_init(void)
75
void arch_post_mm_init(void)
76
{
76
{
77
    if (config.cpu_active == 1) {
77
    if (config.cpu_active == 1) {
78
        /* Initialize framebuffer */
78
        /* Initialize framebuffer */
-
 
79
        if (bootinfo.screen.addr) {
79
        unsigned int visual;
80
            unsigned int visual;
80
       
81
           
81
        switch (bootinfo.screen.bpp) {
82
            switch (bootinfo.screen.bpp) {
82
        case 8:
83
            case 8:
83
            visual = VISUAL_INDIRECT_8;
84
                visual = VISUAL_INDIRECT_8;
Line 101... Line 102...
101
            .y = bootinfo.screen.height,
102
                .y = bootinfo.screen.height,
102
            .scan = bootinfo.screen.scanline,
103
                .scan = bootinfo.screen.scanline,
103
            .visual = visual,
104
                .visual = visual,
104
        };
105
            };
105
        fb_init(&prop);
106
            fb_init(&prop);
-
 
107
        }
106
       
108
       
107
        /* Initialize IRQ routing */
109
        /* Initialize IRQ routing */
108
        irq_init(IRQ_COUNT, IRQ_COUNT);
110
        irq_init(IRQ_COUNT, IRQ_COUNT);
109
   
111
       
-
 
112
        if (bootinfo.macio.addr) {
110
        /* Initialize PIC */
113
            /* Initialize PIC */
111
        pic_init(bootinfo.keyboard.addr, PAGE_SIZE);
114
            pic_init(bootinfo.macio.addr, PAGE_SIZE);
112
       
115
           
113
        /* Initialize I/O controller */
116
            /* Initialize I/O controller */
114
        cuda_init(device_assign_devno(),
117
            cuda_init(device_assign_devno(),
115
            bootinfo.keyboard.addr + 0x16000, 2 * PAGE_SIZE);
118
                bootinfo.macio.addr + 0x16000, 2 * PAGE_SIZE);
-
 
119
        }
116
       
120
       
117
        /* Merge all zones to 1 big zone */
121
        /* Merge all zones to 1 big zone */
118
        zone_merge_all();
122
        zone_merge_all();
119
    }
123
    }
120
}
124
}
Line 141... Line 145...
141
        (uintptr_t) kernel_uarg->uspace_stack +
145
        (uintptr_t) kernel_uarg->uspace_stack +
142
        THREAD_STACK_SIZE - SP_DELTA,
146
        THREAD_STACK_SIZE - SP_DELTA,
143
        (uintptr_t) kernel_uarg->uspace_entry);
147
        (uintptr_t) kernel_uarg->uspace_entry);
144
   
148
   
145
    /* Unreachable */
149
    /* Unreachable */
146
    for (;;)
150
    while (true);
147
        ;
-
 
148
}
151
}
149
 
152
 
150
/** Acquire console back for kernel
153
/** Acquire console back for kernel
151
 *
154
 *
152
 */
155
 */