Subversion Repositories HelenOS

Rev

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

Rev 4345 Rev 4346
Line 77... Line 77...
77
}
77
}
78
 
78
 
79
void arch_post_mm_init(void)
79
void arch_post_mm_init(void)
80
{
80
{
81
    if (config.cpu_active == 1) {
81
    if (config.cpu_active == 1) {
-
 
82
 
-
 
83
#ifdef CONFIG_FB
82
        /* Initialize framebuffer */
84
        /* Initialize framebuffer */
83
        if (bootinfo.screen.addr) {
85
        if (bootinfo.screen.addr) {
84
            unsigned int visual;
86
            unsigned int visual;
85
           
87
           
86
            switch (bootinfo.screen.bpp) {
88
            switch (bootinfo.screen.bpp) {
Line 107... Line 109...
107
                .scan = bootinfo.screen.scanline,
109
                .scan = bootinfo.screen.scanline,
108
                .visual = visual,
110
                .visual = visual,
109
            };
111
            };
110
            fb_init(&prop);
112
            fb_init(&prop);
111
        }
113
        }
-
 
114
#endif
112
       
115
       
113
        /* Initialize IRQ routing */
116
        /* Initialize IRQ routing */
114
        irq_init(IRQ_COUNT, IRQ_COUNT);
117
        irq_init(IRQ_COUNT, IRQ_COUNT);
115
       
118
       
116
        if (bootinfo.macio.addr) {
119
        if (bootinfo.macio.addr) {
Line 157... Line 160...
157
/** Acquire console back for kernel
160
/** Acquire console back for kernel
158
 *
161
 *
159
 */
162
 */
160
void arch_grab_console(void)
163
void arch_grab_console(void)
161
{
164
{
-
 
165
#ifdef CONFIG_FB
162
    fb_redraw();
166
    fb_redraw();
-
 
167
#endif
163
}
168
}
164
 
169
 
165
/** Return console to userspace
170
/** Return console to userspace
166
 *
171
 *
167
 */
172
 */